From: Avi Kivity Date: Mon, 1 Aug 2011 08:03:42 +0000 (+0300) Subject: cirrus: wrap memory update in a transaction X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~2536^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aa69b6b2a32fc5460fc715f424cd21e88e971f88;p=sdk%2Femulator%2Fqemu.git cirrus: wrap memory update in a transaction This prevents spurious unmapping and remapping of the vga windows, which reduces performance. Reviewed-by: Richard Henderson Signed-off-by: Avi Kivity --- diff --git a/hw/cirrus_vga.c b/hw/cirrus_vga.c index 4d0ef0d54c..ec7ea8207b 100644 --- a/hw/cirrus_vga.c +++ b/hw/cirrus_vga.c @@ -2424,6 +2424,7 @@ static void cirrus_update_memory_access(CirrusVGAState *s) { unsigned mode; + memory_region_transaction_begin(); if ((s->vga.sr[0x17] & 0x44) == 0x44) { goto generic_io; } else if (s->cirrus_srcptr != s->cirrus_srcptr_end) { @@ -2443,6 +2444,7 @@ static void cirrus_update_memory_access(CirrusVGAState *s) unmap_linear_vram(s); } } + memory_region_transaction_commit(); }