aboutsummaryrefslogtreecommitdiff
path: root/hw/display/vga-isa.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2013-10-11 19:56:59 +0200
committerGerd Hoffmann <kraxel@redhat.com>2014-04-28 10:21:55 +0200
commite2bbfc8ee2aa82519da7de281305c3bea5431cf1 (patch)
treeeff43085ec85a0b45228134ce0d6dd90be36bf35 /hw/display/vga-isa.c
parent411f491e0af173cf8f39347574941bd26fbae381 (diff)
downloadqemu-e2bbfc8ee2aa82519da7de281305c3bea5431cf1.zip
qemu-e2bbfc8ee2aa82519da7de281305c3bea5431cf1.tar.gz
qemu-e2bbfc8ee2aa82519da7de281305c3bea5431cf1.tar.bz2
vga: allow non-global vmstate
Need a way to opt-out from vga.vram being global vmstate, for secondary vga cards. Add a bool parameter to vga_common_init to support this. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/display/vga-isa.c')
-rw-r--r--hw/display/vga-isa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/display/vga-isa.c b/hw/display/vga-isa.c
index 1d9ea6b..2b480bd 100644
--- a/hw/display/vga-isa.c
+++ b/hw/display/vga-isa.c
@@ -56,7 +56,7 @@ static void vga_isa_realizefn(DeviceState *dev, Error **errp)
MemoryRegion *vga_io_memory;
const MemoryRegionPortio *vga_ports, *vbe_ports;
- vga_common_init(s, OBJECT(dev));
+ vga_common_init(s, OBJECT(dev), true);
s->legacy_address_space = isa_address_space(isadev);
vga_io_memory = vga_init_io(s, OBJECT(dev), &vga_ports, &vbe_ports);
isa_register_portio_list(isadev, 0x3b0, vga_ports, s, "vga");