From: Jan Kiszka Date: Thu, 15 Sep 2011 09:26:56 +0000 (+0200) Subject: vga: Respect isa_mem_base when registering chain4 alias X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=71579cae30b53c910cd6c47ab4e683f647d36519;p=qemu.git vga: Respect isa_mem_base when registering chain4 alias This does not yet unbreak PPC (which has its own problems) but potentially other non-x86 systems where isa_mem_base is != 0. Signed-off-by: Jan Kiszka Signed-off-by: Anthony Liguori --- diff --git a/hw/vga.c b/hw/vga.c index 7be51419ef..f9a6014f4e 100644 --- a/hw/vga.c +++ b/hw/vga.c @@ -181,6 +181,7 @@ static void vga_update_memory_access(VGACommonState *s) size = 0x8000; break; } + base += isa_mem_base; region = g_malloc(sizeof(*region)); memory_region_init_alias(region, "vga.chain4", &s->vram, offset, size); memory_region_add_subregion_overlap(s->legacy_address_space, base,