]> git.proxmox.com Git - qemu.git/commitdiff
vga: Unbreak ISA support
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 21 Sep 2011 18:49:31 +0000 (20:49 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 23 Sep 2011 15:55:33 +0000 (10:55 -0500)
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>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/vga-isa.c

index 0d199015d73d4d9ead1f27704ee079c5fb57bc73..6b5c8ed9707b2430df0a297bf904656f29ee1090 100644 (file)
@@ -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,