From: Stefano Stabellini Date: Tue, 24 Jan 2012 12:04:42 +0000 (+0000) Subject: cirrus_vga: do not reset videoram X-Git-Tag: qemu-xen-4.2.0~36 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=0ea2d40b85ca8af409492959d20c5504d0699bfe;p=qemu-upstream-4.2-testing.git 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: Stefano Stabellini Reviewed-by: Avi Kivity --- diff --git a/hw/cirrus_vga.c b/hw/cirrus_vga.c index c7e365b2a..9724efef6 100644 --- a/hw/cirrus_vga.c +++ b/hw/cirrus_vga.c @@ -2784,10 +2784,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; }