From fa9548362bb77d245c238c72c3f1126ac1edfe89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Banaan=20Ananas?= Date: Mon, 28 Feb 2011 18:56:45 +0000 Subject: [PATCH] crashfix --- src/mame/drivers/taitowlf.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/mame/drivers/taitowlf.c b/src/mame/drivers/taitowlf.c index 70a96a93dc4..08657fea097 100644 --- a/src/mame/drivers/taitowlf.c +++ b/src/mame/drivers/taitowlf.c @@ -221,7 +221,7 @@ static void intel82439tx_pci_w(device_t *busdevice, device_t *device, int functi static UINT8 piix4_config_r(device_t *busdevice, device_t *device, int function, int reg) { - taitowlf_state *state = device->machine->driver_data(); + taitowlf_state *state = busdevice->machine->driver_data(); // mame_printf_debug("PIIX4: read %d, %02X\n", function, reg); return state->piix4_config_reg[function][reg]; } @@ -562,8 +562,7 @@ INPUT_PORTS_END static IRQ_CALLBACK(irq_callback) { taitowlf_state *state = device->machine->driver_data(); - int r = 0; - r = pic8259_acknowledge( state->pic8259_2); + int r = pic8259_acknowledge( state->pic8259_2); if (r==0) { r = pic8259_acknowledge( state->pic8259_1); @@ -651,17 +650,11 @@ static MACHINE_CONFIG_START( taitowlf, taitowlf_state ) MCFG_PCI_BUS_DEVICE(7, NULL, intel82371ab_pci_r, intel82371ab_pci_w) MCFG_PIT8254_ADD( "pit8254", taitowlf_pit8254_config ) - MCFG_I8237_ADD( "dma8237_1", XTAL_14_31818MHz/3, dma8237_1_config ) - MCFG_I8237_ADD( "dma8237_2", XTAL_14_31818MHz/3, dma8237_2_config ) - MCFG_PIC8259_ADD( "pic8259_1", taitowlf_pic8259_1_config ) - MCFG_PIC8259_ADD( "pic8259_2", taitowlf_pic8259_2_config ) - MCFG_IDE_CONTROLLER_ADD("ide", ide_interrupt) - MCFG_MC146818_ADD( "rtc", MC146818_STANDARD ) /* video hardware */