mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
hw/i*: pass owner to memory_region_init* functions
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
b716368778
commit
1437c94b26
41 changed files with 111 additions and 87 deletions
|
@ -1516,8 +1516,8 @@ static void map_list(OpenPICState *opp, const MemReg *list, int *count)
|
|||
while (list->name) {
|
||||
assert(*count < ARRAY_SIZE(opp->sub_io_mem));
|
||||
|
||||
memory_region_init_io(&opp->sub_io_mem[*count], NULL, list->ops, opp,
|
||||
list->name, list->size);
|
||||
memory_region_init_io(&opp->sub_io_mem[*count], OBJECT(opp), list->ops,
|
||||
opp, list->name, list->size);
|
||||
|
||||
memory_region_add_subregion(&opp->mem, list->start_addr,
|
||||
&opp->sub_io_mem[*count]);
|
||||
|
@ -1531,7 +1531,7 @@ static void openpic_init(Object *obj)
|
|||
{
|
||||
OpenPICState *opp = OPENPIC(obj);
|
||||
|
||||
memory_region_init(&opp->mem, NULL, "openpic", 0x40000);
|
||||
memory_region_init(&opp->mem, obj, "openpic", 0x40000);
|
||||
}
|
||||
|
||||
static void openpic_realize(DeviceState *dev, Error **errp)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue