From: aliguori Date: Wed, 21 Jan 2009 18:31:05 +0000 (+0000) Subject: cirrus: unmap vram on reset (Jan Kiszka) X-Git-Tag: stefano.display-merge-end~59 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=ee50c6bc619ddd3b1e32f4eeebd4203bef56bac1;p=qemu-xen-3.4-testing.git cirrus: unmap vram on reset (Jan Kiszka) Fix the broken text mode after reset by unmapping potentially mapped vram. Signed-off-by: Jan Kiszka Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6382 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/hw/cirrus_vga.c b/hw/cirrus_vga.c index ef939ae4..f7b01c30 100644 --- a/hw/cirrus_vga.c +++ b/hw/cirrus_vga.c @@ -3169,6 +3169,7 @@ static void cirrus_reset(void *opaque) 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 */