- added missing BX_PCI_THIS in several places

This commit is contained in:
Bryce Denney 2001-05-29 07:38:22 +00:00
parent fa6e0432a5
commit 43c79a0c07

View File

@ -397,15 +397,15 @@ bx_pci_c::i440fx_fetch_ptr(Bit32u addr)
if (bx_options.i440FXSupport) { if (bx_options.i440FXSupport) {
switch (rd_memType (addr)) { switch (rd_memType (addr)) {
case 0x0: // Read from ShadowRAM case 0x0: // Read from ShadowRAM
return (&devices->mem->vector[addr]); return (&BX_PCI_THIS devices->mem->vector[addr]);
case 0x1: // Read from ROM case 0x1: // Read from ROM
return (&s.i440fx.shadow[(addr - 0xc0000)]); return (&BX_PCI_THIS s.i440fx.shadow[(addr - 0xc0000)]);
default: default:
BX_PANIC(("i440fx_fetch_ptr(): default case\n")); BX_PANIC(("i440fx_fetch_ptr(): default case\n"));
return(0); return(0);
} }
} }
else else
return (&devices->mem->vector[addr]); return (&BX_PCI_THIS devices->mem->vector[addr]);
} }