aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-06-09 21:28:36 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-06-09 21:28:36 +0000
commit7f647cf68f8da27a3d7b2436d545dded3d0f30dd (patch)
treedbb47af8e3239bc433567915b95e12ee2c61e335 /hw
parenta130a41e69bd0d71574fa7c5b955f3850496fe76 (diff)
IDE1 init fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@916 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw')
-rw-r--r--hw/pci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/pci.c b/hw/pci.c
index e72071590c..b05d5d9f59 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -1021,6 +1021,7 @@ static void pci_bios_init_device(PCIDevice *d)
/* 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
} else {
/* IDE: we map it as in ISA mode */
pci_set_io_region_addr(d, 0, 0x1f0);