Skip to contentSkip to conversation

[6382] cirrus: unmap vram on reset (Jan Kiszka)

Qemu-devel Anthony Liguori 1 participant 1 message Jan 21, 2009

lore
Share & tools
lore
#0 lore raw

Revision: 6382

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6382
Author:   aliguori
Date:     2009-01-21 18:31:05 +0000 (Wed, 21 Jan 2009)

Log Message:
-----------
cirrus: unmap vram on reset (Jan Kiszka)

Fix the broken text mode after reset by unmapping potentially mapped vram.

Modified Paths:
--------------
trunk/hw/cirrus_vga.c

Modified: trunk/hw/cirrus_vga.c
===================================================================

hw/cirrus_vga.c +1 -0
@@ -3169,6 +3169,7 @@
     CirrusVGAState *s = opaque;
 
     vga_reset(s);
+    unmap_linear_vram(s);
     s->sr[0x06] = 0x0f;
     if (s->device_id == CIRRUS_ID_CLGD5446) {
         /* 4MB 64 bit memory config, always PCI */