Skip to contentSkip to conversation

vga: Respect isa_mem_base when registering chain4 alias

PATCH Applied Jan Kiszka 2 participants 2 messages Sep 15, 2011 – Sep 16, 2011

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 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.

---
 hw/vga.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
hw/vga.c +1 -0
index 125fb29..0a0c5a6 100644
@@ -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,
Signature · 1 line
1.7.3.4
#1 lore raw
Quoted 4 lines · Jan Kiszka

This does not yet unbreak PPC (which has its own problems) but potentially other non-x86 systems where isa_mem_base is != 0.

Applied. Thanks.

Regards,

Anthony Liguori

Quoted 16 lines
---
  hw/vga.c |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)
hw/vga.c +1 -0
index 125fb29..0a0c5a6 100644
@@ -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,