diff options
author | Juan Quintela <quintela@redhat.com> | 2009-08-24 18:42:45 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-08-27 20:46:59 -0500 |
commit | 3ec492ef341e22db6f7b393a72341c44d380ca58 (patch) | |
tree | 6f05dd6acdd9b2970aac7567ecda2b571c507285 /hw/vga.c | |
parent | b6a766e24820c72db5567becd0f228efa84b90f0 (diff) | |
download | qemu-3ec492ef341e22db6f7b393a72341c44d380ca58.tar.gz qemu-3ec492ef341e22db6f7b393a72341c44d380ca58.tar.bz2 qemu-3ec492ef341e22db6f7b393a72341c44d380ca58.zip |
Introduce vga_common_reset() to be able to typcheck vga_reset()
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/vga.c')
-rw-r--r-- | hw/vga.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -1873,10 +1873,8 @@ static void vga_invalidate_display(void *opaque) s->full_update = 1; } -void vga_reset(void *opaque) +void vga_common_reset(VGACommonState *s) { - VGAState *s = (VGAState *) opaque; - s->lfb_addr = 0; s->lfb_end = 0; s->map_addr = 0; @@ -1942,6 +1940,12 @@ void vga_reset(void *opaque) } } +static void vga_reset(void *opaque) +{ + VGAState *s = (VGAState *) opaque; + vga_common_reset(s); +} + #define TEXTMODE_X(x) ((x) % width) #define TEXTMODE_Y(x) ((x) / width) #define VMEM2CHTYPE(v) ((v & 0xff0007ff) | \ |