diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2012-11-12 14:29:47 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2014-04-28 11:03:32 +0200 |
commit | 63e3e24db2e9eef8cf7e5f611c0a2e06dd9207c9 (patch) | |
tree | a420a9a3cd1ceaf3df71970bc92fd4056094d567 /hw/display/vga.c | |
parent | e2bbfc8ee2aa82519da7de281305c3bea5431cf1 (diff) |
vga: add secondary stdvga variant
Add a standard vga variant which doesn't occupy any legacy
resources and thus can easily be used as secondary (or legacy-free)
graphics adapter. Programming must be done using the MMIO bar.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/display/vga.c')
-rw-r--r-- | hw/display/vga.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/display/vga.c b/hw/display/vga.c index 8891e0a064..c4c3238d5f 100644 --- a/hw/display/vga.c +++ b/hw/display/vga.c @@ -171,6 +171,10 @@ static void vga_update_memory_access(VGACommonState *s) MemoryRegion *region, *old_region = s->chain4_alias; hwaddr base, offset, size; + if (s->legacy_address_space == NULL) { + return; + } + s->chain4_alias = NULL; if ((s->sr[VGA_SEQ_PLANE_WRITE] & VGA_SR02_ALL_PLANES) == |