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/apb_pci.c | |
| parent | 6bd105151ac5529605a478de3b6c3aceed5995e9 (diff) | |
| download | focaccia-qemu-1e39101c649a008462db1ac1d027c62870454d1f.tar.gz focaccia-qemu-1e39101c649a008462db1ac1d027c62870454d1f.zip | |
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/apb_pci.c')
| -rw-r--r-- | hw/apb_pci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/apb_pci.c b/hw/apb_pci.c index 974c87a8ce..8b9939c06a 100644 --- a/hw/apb_pci.c +++ b/hw/apb_pci.c @@ -34,6 +34,7 @@ #include "rwhandler.h" #include "apb_pci.h" #include "sysemu.h" +#include "exec-memory.h" /* debug APB */ //#define DEBUG_APB @@ -346,6 +347,7 @@ PCIBus *pci_apb_init(target_phys_addr_t special_base, d->bus = pci_register_bus(&d->busdev.qdev, "pci", pci_apb_set_irq, pci_pbm_map_irq, d, + get_system_memory(), 0, 32); pci_bus_set_mem_base(d->bus, mem_base); |