Commit 0516ede089e23f8434b6bf3294e5ccf30f5d5549
1 parent
5ce4aafd
cmd646: correctly enable IDE channels
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6232 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
2 additions
and
1 deletions
hw/ide.c
@@ -3185,9 +3185,10 @@ void pci_cmd646_ide_init(PCIBus *bus, BlockDriverState **hd_table, | @@ -3185,9 +3185,10 @@ void pci_cmd646_ide_init(PCIBus *bus, BlockDriverState **hd_table, | ||
3185 | pci_conf[0x0b] = 0x01; // class_base = PCI_mass_storage | 3185 | pci_conf[0x0b] = 0x01; // class_base = PCI_mass_storage |
3186 | pci_conf[0x0e] = 0x00; // header_type | 3186 | pci_conf[0x0e] = 0x00; // header_type |
3187 | 3187 | ||
3188 | + pci_conf[0x51] = 0x04; // enable IDE0 | ||
3188 | if (secondary_ide_enabled) { | 3189 | if (secondary_ide_enabled) { |
3189 | /* XXX: if not enabled, really disable the seconday IDE controller */ | 3190 | /* XXX: if not enabled, really disable the seconday IDE controller */ |
3190 | - pci_conf[0x51] = 0x80; /* enable IDE1 */ | 3191 | + pci_conf[0x51] |= 0x08; /* enable IDE1 */ |
3191 | } | 3192 | } |
3192 | 3193 | ||
3193 | pci_register_io_region((PCIDevice *)d, 0, 0x8, | 3194 | pci_register_io_region((PCIDevice *)d, 0, 0x8, |