diff --git a/hw/pci.c b/hw/pci.c index 919b9028fab9494210c3faee6580f51db2f74f37..a6f452f423eb067d7e99db9cf8d0f39918dbb393 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -1402,9 +1402,9 @@ static void pci_bios_init_device(PCIDevice *d) case 0x0101: if (vendor_id == 0x8086 && device_id == 0x7010) { /* PIIX3 IDE */ - pci_config_writew(d, PCI_COMMAND, PCI_COMMAND_IO); pci_config_writew(d, 0x40, 0x8000); // enable IDE0 pci_config_writew(d, 0x42, 0x8000); // enable IDE1 + goto default_map; } else { /* IDE: we map it as in ISA mode */ pci_set_io_region_addr(d, 0, 0x1f0);