aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-14 08:52:44 +0000
committerj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-14 08:52:44 +0000
commita01d8cadadf4c0dad8fc5157ee56aea8ec323982 (patch)
tree1f53d3d9e5889365270450e74162a74346d6f612 /hw
parentbb6f6792bfa5ee7e3526fa3a23c622296e8bff1a (diff)
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
Diffstat (limited to 'hw')
-rw-r--r--hw/prep_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/prep_pci.c b/hw/prep_pci.c
index f384e42154..6d6a1349cb 100644
--- a/hw/prep_pci.c
+++ b/hw/prep_pci.c
@@ -135,7 +135,7 @@ PCIBus *pci_prep_init(qemu_irq *pic)
int PPC_io_memory;
s = qemu_mallocz(sizeof(PREPPCIState));
- s->bus = pci_register_bus(prep_set_irq, prep_map_irq, pic, 0, 2);
+ s->bus = pci_register_bus(prep_set_irq, prep_map_irq, pic, 0, 4);
register_ioport_write(0xcf8, 4, 4, pci_prep_addr_writel, s);
register_ioport_read(0xcf8, 4, 4, pci_prep_addr_readl, s);