]> git.proxmox.com Git - mirror_qemu.git/commitdiff
vga: Respect isa_mem_base when registering chain4 alias
authorJan Kiszka <jan.kiszka@siemens.com>
Thu, 15 Sep 2011 09:26:56 +0000 (11:26 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 16 Sep 2011 14:06:28 +0000 (09:06 -0500)
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 <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/vga.c

index 7be51419efe955bd737b6fe597073c1d3b886dc3..f9a6014f4e0c79dc636e0341ed6b5514d10b3bee 100644 (file)
--- 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,