vga: factor out vga register setup
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 26 Apr 2016 13:24:18 +0000 (15:24 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 2 May 2016 14:02:59 +0000 (16:02 +0200)
commit7fa5c2c5dc9f9bf878c1e8669eb9644d70a71e71
treed6c4bd93dcc3cc3edf08dd0e8bbfafb510d9fb43
parentbfa0f151a564a83b5a26f3e917da98674bf3cf62
vga: factor out vga register setup

When enabling vbe mode qemu will setup a bunch of vga registers to make
sure the vga emulation operates in correct mode for a linear
framebuffer.  Move that code to a separate function so we can call it
from other places too.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/display/vga.c