]> xenbits.xensource.com Git - qemu-upstream-4.2-testing.git/commitdiff
cirrus_vga: do not reset videoram
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 24 Jan 2012 12:04:42 +0000 (12:04 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Mon, 19 Mar 2012 18:35:05 +0000 (18:35 +0000)
There is no need to set the videoram to 0xff in cirrus_reset, because it
is the BIOS' job.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Reviewed-by: Avi Kivity <avi@redhat.com>
hw/cirrus_vga.c

index c7e365b2a67ba2cb043065493f6712f4739d3d08..9724efef6085a7da4bce5d0b2446671220fbddbe 100644 (file)
@@ -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;
 }