diff options
author | Avi Kivity <avi@redhat.com> | 2011-07-26 14:26:19 +0300 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-07-29 08:25:44 -0500 |
commit | 1e39101c649a008462db1ac1d027c62870454d1f (patch) | |
tree | b2c6402330466d10502e56e4b60a3600c7e298df /hw/bonito.c | |
parent | 6bd105151ac5529605a478de3b6c3aceed5995e9 (diff) | |
download | qemu-1e39101c649a008462db1ac1d027c62870454d1f.zip qemu-1e39101c649a008462db1ac1d027c62870454d1f.tar.gz qemu-1e39101c649a008462db1ac1d027c62870454d1f.tar.bz2 |
pci: pass address space to pci bus when created
This is now done sloppily, via get_system_memory(). Eventually callers
will be converted to stop using that.
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/bonito.c')
-rw-r--r-- | hw/bonito.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/bonito.c b/hw/bonito.c index e8c57a3..5f62dda 100644 --- a/hw/bonito.c +++ b/hw/bonito.c @@ -42,6 +42,7 @@ #include "mips.h" #include "pci_host.h" #include "sysemu.h" +#include "exec-memory.h" //#define DEBUG_BONITO @@ -773,7 +774,8 @@ PCIBus *bonito_init(qemu_irq *pic) dev = qdev_create(NULL, "Bonito-pcihost"); pcihost = FROM_SYSBUS(BonitoState, sysbus_from_qdev(dev)); b = pci_register_bus(&pcihost->busdev.qdev, "pci", pci_bonito_set_irq, - pci_bonito_map_irq, pic, 0x28, 32); + pci_bonito_map_irq, pic, get_system_memory(), + 0x28, 32); pcihost->bus = b; qdev_init_nofail(dev); |