summaryrefslogtreecommitdiffstats
path: root/hw/vmware_vga.c
diff options
context:
space:
mode:
authorJuan Quintela2009-08-31 16:07:14 +0200
committerAnthony Liguori2009-09-09 21:55:11 +0200
commit0d65ddc3847ff3676f91907f2d6de6585d4d42fd (patch)
treee69db44ff8c1c17d8abb051f4a1d8ffda9e0abcf /hw/vmware_vga.c
parentvga: export vga_ioport_{read,write} (diff)
downloadqemu-0d65ddc3847ff3676f91907f2d6de6585d4d42fd.tar.gz
qemu-0d65ddc3847ff3676f91907f2d6de6585d4d42fd.tar.xz
qemu-0d65ddc3847ff3676f91907f2d6de6585d4d42fd.zip
vga: split vga_{load, save} into pci and common parts
Once there adjust VGAState <-> VGACommonState Export vga_common_save/vga_common_load (nreeded by wmvare_vga Remove vga.pci_dev field, it is not needed anymore Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/vmware_vga.c')
-rw-r--r--hw/vmware_vga.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/vmware_vga.c b/hw/vmware_vga.c
index c6bce5a826..a273f35930 100644
--- a/hw/vmware_vga.c
+++ b/hw/vmware_vga.c
@@ -1131,6 +1131,7 @@ static void vmsvga_init(struct vmsvga_state_s *s, int vga_ram_size)
#ifdef EMBED_STDVGA
vga_common_init(&s->vga, vga_ram_size);
vga_init(&s->vga);
+ register_savevm("vga", 0, 2, vga_common_save, vga_common_load, &s->vga);
#else
s->vram_size = vga_ram_size;
s->vram_offset = qemu_ram_alloc(vga_ram_size);