mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -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
|
@ -275,7 +275,7 @@ static const MemoryRegionOps platform_fixed_io_ops = {
|
|||
|
||||
static void platform_fixed_ioport_init(PCIXenPlatformState* s)
|
||||
{
|
||||
memory_region_init_io(&s->fixed_io, &platform_fixed_io_ops, s,
|
||||
memory_region_init_io(&s->fixed_io, NULL, &platform_fixed_io_ops, s,
|
||||
"xen-fixed", 16);
|
||||
memory_region_add_subregion(get_system_io(), XEN_PLATFORM_IOPORT,
|
||||
&s->fixed_io);
|
||||
|
@ -319,7 +319,7 @@ static const MemoryRegionOps xen_pci_io_ops = {
|
|||
|
||||
static void platform_ioport_bar_setup(PCIXenPlatformState *d)
|
||||
{
|
||||
memory_region_init_io(&d->bar, &xen_pci_io_ops, d, "xen-pci", 0x100);
|
||||
memory_region_init_io(&d->bar, NULL, &xen_pci_io_ops, d, "xen-pci", 0x100);
|
||||
}
|
||||
|
||||
static uint64_t platform_mmio_read(void *opaque, hwaddr addr,
|
||||
|
@ -347,7 +347,7 @@ static const MemoryRegionOps platform_mmio_handler = {
|
|||
|
||||
static void platform_mmio_setup(PCIXenPlatformState *d)
|
||||
{
|
||||
memory_region_init_io(&d->mmio_bar, &platform_mmio_handler, d,
|
||||
memory_region_init_io(&d->mmio_bar, NULL, &platform_mmio_handler, d,
|
||||
"xen-mmio", 0x1000000);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue