提交 695bb854 编写于 作者: S Stefano Stabellini

cirrus_vga: do not reset videoram

There is no need to set the videoram to 0xff in cirrus_reset, because it
is the BIOS' job.
Signed-off-by: NStefano Stabellini <stefano.stabellini@eu.citrix.com>
Reviewed-by: NAvi Kivity <avi@redhat.com>
上级 b4bd0b16
...@@ -2767,10 +2767,6 @@ static void cirrus_reset(void *opaque) ...@@ -2767,10 +2767,6 @@ static void cirrus_reset(void *opaque)
} }
s->vga.cr[0x27] = s->device_id; s->vga.cr[0x27] = s->device_id;
/* Win2K seems to assume that the pattern buffer is at 0xff
initially ! */
memset(s->vga.vram_ptr, 0xff, s->real_vram_size);
s->cirrus_hidden_dac_lockindex = 5; s->cirrus_hidden_dac_lockindex = 5;
s->cirrus_hidden_dac_data = 0; s->cirrus_hidden_dac_data = 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册