提交 ee50c6bc 编写于 作者: A aliguori

cirrus: unmap vram on reset (Jan Kiszka)

Fix the broken text mode after reset by unmapping potentially mapped
vram.
Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6382 c046a42c-6fe2-441c-8c8c-71466251a162
上级 93a0dba7
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册