mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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>
This commit is contained in:
parent
77302fb5df
commit
0fe1eca7dc
9 changed files with 20 additions and 43 deletions
|
@ -236,7 +236,6 @@ static void tcx_update_display(void *opaque)
|
|||
dd = surface_stride(surface);
|
||||
ds = 1024;
|
||||
|
||||
memory_region_sync_dirty_bitmap(&ts->vram_mem);
|
||||
snap = memory_region_snapshot_and_clear_dirty(&ts->vram_mem, 0x0,
|
||||
memory_region_size(&ts->vram_mem),
|
||||
DIRTY_MEMORY_VGA);
|
||||
|
@ -292,7 +291,6 @@ static void tcx24_update_display(void *opaque)
|
|||
dd = surface_stride(surface);
|
||||
ds = 1024;
|
||||
|
||||
memory_region_sync_dirty_bitmap(&ts->vram_mem);
|
||||
snap = memory_region_snapshot_and_clear_dirty(&ts->vram_mem, 0x0,
|
||||
memory_region_size(&ts->vram_mem),
|
||||
DIRTY_MEMORY_VGA);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue