mirror of
https://github.com/holub/mame
synced 2025-04-25 09:50:04 +03:00
queen: intercept OOB access to PIIX4 device [Peter Ferrie]
This commit is contained in:
parent
3dee27e730
commit
1477c0133e
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user