mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
memory: add owner argument to initialization functions
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
5767e4e198
commit
2c9b15cab1
319 changed files with 787 additions and 759 deletions
|
@ -355,12 +355,12 @@ static int ppc4xx_pcihost_initfn(SysBusDevice *dev)
|
|||
pci_create_simple(b, 0, "ppc4xx-host-bridge");
|
||||
|
||||
/* XXX split into 2 memory regions, one for config space, one for regs */
|
||||
memory_region_init(&s->container, "pci-container", PCI_ALL_SIZE);
|
||||
memory_region_init_io(&h->conf_mem, &pci_host_conf_le_ops, h,
|
||||
memory_region_init(&s->container, NULL, "pci-container", PCI_ALL_SIZE);
|
||||
memory_region_init_io(&h->conf_mem, NULL, &pci_host_conf_le_ops, h,
|
||||
"pci-conf-idx", 4);
|
||||
memory_region_init_io(&h->data_mem, &pci_host_data_le_ops, h,
|
||||
memory_region_init_io(&h->data_mem, NULL, &pci_host_data_le_ops, h,
|
||||
"pci-conf-data", 4);
|
||||
memory_region_init_io(&s->iomem, &pci_reg_ops, s,
|
||||
memory_region_init_io(&s->iomem, NULL, &pci_reg_ops, s,
|
||||
"pci.reg", PCI_REG_SIZE);
|
||||
memory_region_add_subregion(&s->container, PCIC0_CFGADDR, &h->conf_mem);
|
||||
memory_region_add_subregion(&s->container, PCIC0_CFGDATA, &h->data_mem);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue