diff options
author | 2015-03-18 22:53:45 -0700 | |
---|---|---|
committer | 2015-03-18 22:53:57 -0700 | |
commit | 1477c0133e5bc6883df9cfdb35a325e9d9d13e4b (patch) | |
tree | 8151ec3aa0963b43ea014e95dd24c7bdc406de4e | |
parent | 3dee27e73002894db1c1935bcc7232fa0b4a417b (diff) |
queen: intercept OOB access to PIIX4 device [Peter Ferrie]
-rw-r--r-- | src/mame/drivers/queen.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mame/drivers/queen.c b/src/mame/drivers/queen.c index 25329d10b2a..68d445f911a 100644 --- a/src/mame/drivers/queen.c +++ b/src/mame/drivers/queen.c @@ -151,6 +151,11 @@ 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) { + if ((function >= 4) && (function <= 7)) + { + return 0; // BIOS performs a brute-force scan for devices + } + queen_state *state = busdevice->machine().driver_data<queen_state>(); // osd_printf_debug("PIIX4: read %d, %02X\n", function, reg); assert(function >= 0 && function < ARRAY_LENGTH(state->m_piix4_config_reg)); |