summaryrefslogtreecommitdiff
path: root/hw/ide.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-08-06 09:14:32 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-08-06 09:14:32 +0000
commit92510b8cf5a18e1671633fddb53599fb02936302 (patch)
tree54fc94c98b26db5f42e396e264e0c7e38f9d6a36 /hw/ide.c
parent6cc721cf4214a088538318083b27ed67a5159f3e (diff)
downloadqemu-92510b8cf5a18e1671633fddb53599fb02936302.tar.gz
qemu-92510b8cf5a18e1671633fddb53599fb02936302.tar.bz2
qemu-92510b8cf5a18e1671633fddb53599fb02936302.zip
ide PCI ident fix, aka FreeBSD/amd64 bug fix (Jung-uk Kim)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1538 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/ide.c')
-rw-r--r--hw/ide.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/ide.c b/hw/ide.c
index f5fd028b82..28ed5abbe2 100644
--- a/hw/ide.c
+++ b/hw/ide.c
@@ -2330,6 +2330,7 @@ void pci_piix3_ide_init(PCIBus *bus, BlockDriverState **hd_table)
pci_conf[0x01] = 0x80;
pci_conf[0x02] = 0x10;
pci_conf[0x03] = 0x70;
+ pci_conf[0x09] = 0x80; // legacy ATA mode
pci_conf[0x0a] = 0x01; // class_sub = PCI_IDE
pci_conf[0x0b] = 0x01; // class_base = PCI_mass_storage
pci_conf[0x0e] = 0x00; // header_type