MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

etabeta
Reged: 08/25/04
Posts: 2036
Send PM
Re: bad downcast<> or device<>
01/04/13 12:11 AM


> I'm working on the Savage Quest driver right now.
> After implementing support for the missing PAM registers and fixing a collection of
> things in the IDE controller code, it starts booting and eventually I see an IRQ2
> acknowledge request.
> However, the "pic8259->read_slave_ack_func(irq);" call is exiting with this message:
>
> "Error: bad downcast<> or device<>. Tried to convert the device ic8259_1 of
> type class device_t * to a class savquest_state *, which are incompatible."
>
> The only other drivers that implement the 8259 are also skeletons, and I haven't
> managed to get any of them to trigger an acknowledge request to see if they fail
> similarly.
> What have I not implemented yet that might fix this?

without the actual source is hard to tell exactly where the problem is.
I'd start from checking that your savquest_state class contains a device_t pic8259 member, so that you can later call state->pic8259->read_slave_ack_func as above.







Entire thread
Subject Posted by Posted on
* bad downcast<> or device<> peter ferrie 01/03/13 10:53 PM
. * Re: bad downcast<> or device<> etabeta  01/04/13 12:11 AM
. * Re: bad downcast<> or device<> peter ferrie  01/04/13 12:28 AM
. * Re: bad downcast<> or device<> peter ferrie  01/04/13 02:40 AM
. * Re: bad downcast<> or device<> etabeta  01/04/13 08:47 AM
. * Re: bad downcast<> or device<> R. Belmont  01/04/13 05:43 PM
. * Re: bad downcast<> or device<> peter ferrie  01/04/13 11:38 PM

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 250 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 1175