diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-06-06 21:25:08 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-07-04 17:42:48 +0200 |
commit | 40c5dce99bac2d1d5f240c8c8ec53dc23ea46a89 (patch) | |
tree | f169d56f65f0d92bc0a2a26fa27b52f3bcf1b7f5 /hw/pci/pcie_host.c | |
parent | eedfac6f38b2ba8be827088cd3facd19d21af1e1 (diff) | |
download | qemu-40c5dce99bac2d1d5f240c8c8ec53dc23ea46a89.zip qemu-40c5dce99bac2d1d5f240c8c8ec53dc23ea46a89.tar.gz qemu-40c5dce99bac2d1d5f240c8c8ec53dc23ea46a89.tar.bz2 |
hw/p*: pass owner to memory_region_init* functions
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/pci/pcie_host.c')
-rw-r--r-- | hw/pci/pcie_host.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/pci/pcie_host.c b/hw/pci/pcie_host.c index 26f2007..b70e5ad 100644 --- a/hw/pci/pcie_host.c +++ b/hw/pci/pcie_host.c @@ -130,7 +130,8 @@ void pcie_host_mmcfg_map(PCIExpressHost *e, hwaddr addr, assert(size >= PCIE_MMCFG_SIZE_MIN); assert(size <= PCIE_MMCFG_SIZE_MAX); e->size = size; - memory_region_init_io(&e->mmio, NULL, &pcie_mmcfg_ops, e, "pcie-mmcfg", e->size); + memory_region_init_io(&e->mmio, OBJECT(e), &pcie_mmcfg_ops, e, + "pcie-mmcfg", e->size); e->base_addr = addr; memory_region_add_subregion(get_system_memory(), e->base_addr, &e->mmio); } |