Patchwork [3/4] vga: Unbreak ISA support

login
register
mail settings
Submitter Jan Kiszka
Date Sept. 21, 2011, 6:49 p.m.
Message ID <3de3d4b81259c994a009359c47863016da434610.1316630969.git.jan.kiszka@web.de>
Download mbox | patch
Permalink /patch/115840/
State New
Headers show

Comments

Jan Kiszka - Sept. 21, 2011, 6:49 p.m.
From: Jan Kiszka <jan.kiszka@siemens.com>

We need to initialize legacy_address_space during ISA VGA setup so that
the chain-4 alias can be registered properly.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 hw/vga-isa.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/hw/vga-isa.c b/hw/vga-isa.c
index 0d19901..6b5c8ed 100644
--- a/hw/vga-isa.c
+++ b/hw/vga-isa.c
@@ -49,6 +49,7 @@  static int vga_initfn(ISADevice *dev)
     MemoryRegion *vga_io_memory;
 
     vga_common_init(s, VGA_RAM_SIZE);
+    s->legacy_address_space = isa_address_space(dev);
     vga_io_memory = vga_init_io(s);
     memory_region_add_subregion_overlap(isa_address_space(dev),
                                         isa_mem_base + 0x000a0000,