From patchwork Thu Mar 15 18:19:03 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [v6,1/6] cirrus_vga: do not reset videoram Date: Thu, 15 Mar 2012 08:19:03 -0000 From: Stefano Stabellini X-Patchwork-Id: 147061 Message-Id: <1331835548-537-1-git-send-email-stefano.stabellini@eu.citrix.com> To: qemu-devel@nongnu.org Cc: jan.kiszka@siemens.com, xen-devel@lists.xensource.com, avi@redhat.com, anthony@codemonkey.ws, Stefano Stabellini There is no need to set the videoram to 0xff in cirrus_reset, because it is the BIOS' job. Signed-off-by: Stefano Stabellini Reviewed-by: Avi Kivity --- hw/cirrus_vga.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/hw/cirrus_vga.c b/hw/cirrus_vga.c index 4edcb94..afedaa4 100644 --- a/hw/cirrus_vga.c +++ b/hw/cirrus_vga.c @@ -2767,10 +2767,6 @@ static void cirrus_reset(void *opaque) } 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_data = 0; }