diff options
Diffstat (limited to 'hw/vga.c')
-rw-r--r-- | hw/vga.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1839,7 +1839,7 @@ static void vga_invalidate_display(void *opaque) s->last_height = -1; } -static void vga_reset(void *opaque) +void vga_reset(void *opaque) { VGAState *s = (VGAState *) opaque; @@ -2277,7 +2277,6 @@ void vga_common_init(VGAState *s, DisplayState *ds, uint8_t *vga_ram_base, s->update_retrace_info = vga_precise_update_retrace_info; break; } - qemu_register_reset(vga_reset, s); vga_reset(s); } @@ -2286,6 +2285,7 @@ void vga_init(VGAState *s) { int vga_io_memory; + qemu_register_reset(vga_reset, s); register_savevm("vga", 0, 2, vga_save, vga_load, s); register_ioport_write(0x3c0, 16, 1, vga_ioport_write, s); |