vga: set owner in vga_update_memory_access
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
c84b28eeea
commit
42e038fe91
|
@ -198,7 +198,8 @@ static void vga_update_memory_access(VGACommonState *s)
|
||||||
}
|
}
|
||||||
base += isa_mem_base;
|
base += isa_mem_base;
|
||||||
region = g_malloc(sizeof(*region));
|
region = g_malloc(sizeof(*region));
|
||||||
memory_region_init_alias(region, NULL, "vga.chain4", &s->vram, offset, size);
|
memory_region_init_alias(region, memory_region_owner(&s->vram),
|
||||||
|
"vga.chain4", &s->vram, offset, size);
|
||||||
memory_region_add_subregion_overlap(s->legacy_address_space, base,
|
memory_region_add_subregion_overlap(s->legacy_address_space, base,
|
||||||
region, 2);
|
region, 2);
|
||||||
s->chain4_alias = region;
|
s->chain4_alias = region;
|
||||||
|
|
Loading…
Reference in a new issue