]> xenbits.xen.org Git - xenclient/ioemu.git/commit
cirrus: Do not clear vram area to 0xff when not yet allocated.
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 24 Mar 2009 18:12:39 +0000 (18:12 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 24 Mar 2009 18:12:39 +0000 (18:12 +0000)
commit545882583159e9cc53cde5965277967092459f37
treec7beb8de99f6a908ed150c33bb95b775134a6bf7
parent601cf2c84e0107a1fd01a6888986b6b9442a5368
cirrus: Do not clear vram area to 0xff when not yet allocated.

When restoring, the vram data pointer is not valid until (depending on
the version of the savefile) the guest has informed us what memory to
use.  Thus vram_ptr may be NULL.  In this patch we avoid attempting to
clear the video ram in this case.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
hw/cirrus_vga.c