mirror of
https://github.com/holub/mame
synced 2025-05-22 13:48:55 +03:00
Fix seattle.c crash (hyprdriv)
This commit is contained in:
parent
ce73844036
commit
959698c099
@ -605,7 +605,7 @@ static void ide_interrupt(const device_config *device, int state)
|
||||
*
|
||||
*************************************/
|
||||
|
||||
static void ethernet_interrupt(running_machine *machine, int state)
|
||||
static void ethernet_interrupt_machine(running_machine *machine, int state)
|
||||
{
|
||||
ethernet_irq_state = state;
|
||||
if (board_config == FLAGSTAFF_CONFIG)
|
||||
@ -618,6 +618,11 @@ static void ethernet_interrupt(running_machine *machine, int state)
|
||||
update_widget_irq(machine);
|
||||
}
|
||||
|
||||
static void ethernet_interrupt(const device_config *device, int state)
|
||||
{
|
||||
ethernet_interrupt_machine(device->machine, state);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*************************************
|
||||
@ -695,7 +700,7 @@ static WRITE32_HANDLER( interrupt_config_w )
|
||||
|
||||
/* update the states */
|
||||
update_vblank_irq(space->machine);
|
||||
ethernet_interrupt(space->machine, ethernet_irq_state);
|
||||
ethernet_interrupt_machine(space->machine, ethernet_irq_state);
|
||||
}
|
||||
|
||||
|
||||
@ -708,7 +713,7 @@ static WRITE32_HANDLER( seattle_interrupt_enable_w )
|
||||
if (vblank_latch)
|
||||
update_vblank_irq(space->machine);
|
||||
if (ethernet_irq_state)
|
||||
ethernet_interrupt(space->machine, ethernet_irq_state);
|
||||
ethernet_interrupt_machine(space->machine, ethernet_irq_state);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user