summaryrefslogtreecommitdiffstats
path: root/hw/display/cg3.c
diff options
context:
space:
mode:
authorPaolo Bonzini2018-02-06 18:24:13 +0100
committerPaolo Bonzini2018-02-13 16:15:09 +0100
commit0fe1eca7dcef4b0432c858d0eea32a84f014ddc5 (patch)
tree3916ed964cbd288ae2ee550a09286f885fd44ad2 /hw/display/cg3.c
parentmemory: remove memory_region_test_and_clear_dirty (diff)
downloadqemu-0fe1eca7dcef4b0432c858d0eea32a84f014ddc5.tar.gz
qemu-0fe1eca7dcef4b0432c858d0eea32a84f014ddc5.tar.xz
qemu-0fe1eca7dcef4b0432c858d0eea32a84f014ddc5.zip
memory: hide memory_region_sync_dirty_bitmap behind DirtyBitmapSnapshot
Simplify the users of memory_region_snapshot_and_clear_dirty, so that they do not have to call memory_region_sync_dirty_bitmap explicitly. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/display/cg3.c')
-rw-r--r--hw/display/cg3.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/display/cg3.c b/hw/display/cg3.c
index cafd9f47ef..6fff4852c5 100644
--- a/hw/display/cg3.c
+++ b/hw/display/cg3.c
@@ -108,7 +108,6 @@ static void cg3_update_display(void *opaque)
data = (uint32_t *)surface_data(surface);
if (!s->full_update) {
- memory_region_sync_dirty_bitmap(&s->vram_mem);
snap = memory_region_snapshot_and_clear_dirty(&s->vram_mem, 0x0,
memory_region_size(&s->vram_mem),
DIRTY_MEMORY_VGA);