Commit a01d8cadadf4c0dad8fc5157ee56aea8ec323982
1 parent
bb6f6792
Fix memory corruption reported by Julian Seward
(still more bugs to fix in PreP emulation). git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3390 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
hw/prep_pci.c
... | ... | @@ -135,7 +135,7 @@ PCIBus *pci_prep_init(qemu_irq *pic) |
135 | 135 | int PPC_io_memory; |
136 | 136 | |
137 | 137 | s = qemu_mallocz(sizeof(PREPPCIState)); |
138 | - s->bus = pci_register_bus(prep_set_irq, prep_map_irq, pic, 0, 2); | |
138 | + s->bus = pci_register_bus(prep_set_irq, prep_map_irq, pic, 0, 4); | |
139 | 139 | |
140 | 140 | register_ioport_write(0xcf8, 4, 4, pci_prep_addr_writel, s); |
141 | 141 | register_ioport_read(0xcf8, 4, 4, pci_prep_addr_readl, s); | ... | ... |