mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
hw/[u-x]*: pass owner to memory_region_init* functions
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
853dca1205
commit
22fc860b0a
12 changed files with 31 additions and 25 deletions
|
@ -416,7 +416,7 @@ static int xen_pt_register_regions(XenPCIPassthroughState *s)
|
|||
}
|
||||
}
|
||||
|
||||
memory_region_init_io(&s->bar[i], NULL, &ops, &s->dev,
|
||||
memory_region_init_io(&s->bar[i], OBJECT(s), &ops, &s->dev,
|
||||
"xen-pci-pt-bar", r->size);
|
||||
pci_register_bar(&s->dev, i, type, &s->bar[i]);
|
||||
|
||||
|
@ -440,7 +440,7 @@ static int xen_pt_register_regions(XenPCIPassthroughState *s)
|
|||
|
||||
s->bases[PCI_ROM_SLOT].access.maddr = d->rom.base_addr;
|
||||
|
||||
memory_region_init_rom_device(&s->rom, NULL, NULL, NULL,
|
||||
memory_region_init_rom_device(&s->rom, OBJECT(s), NULL, NULL,
|
||||
"xen-pci-pt-rom", d->rom.size);
|
||||
pci_register_bar(&s->dev, PCI_ROM_SLOT, PCI_BASE_ADDRESS_MEM_PREFETCH,
|
||||
&s->rom);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue