summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2011-12-15 16:07:48 +0200
committerAvi Kivity <avi@redhat.com>2011-12-20 14:14:07 +0200
commitc1cd0b2c5131f24504d4513c4160cec73d53b326 (patch)
treeb64daf19c93c7998cb37c569dc90c3fb23c7149b /hw
parentdcc5cd33d27ab5612e0212b5399ad6ac0bc4886e (diff)
downloadqemu-c1cd0b2c5131f24504d4513c4160cec73d53b326.zip
framebuffer: drop use of cpu_physical_sync_dirty_bitmap()
Replace with memory API equivalent. Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/framebuffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/framebuffer.c b/hw/framebuffer.c
index 3f4e77375c..b43bcdff40 100644
--- a/hw/framebuffer.c
+++ b/hw/framebuffer.c
@@ -50,7 +50,6 @@ void framebuffer_update_display(
*first_row = -1;
src_len = src_width * rows;
- cpu_physical_sync_dirty_bitmap(base, base + src_len);
mem_section = memory_region_find(address_space, base, src_len);
if (mem_section.size != src_len || !memory_region_is_ram(mem_section.mr)) {
return;
@@ -59,6 +58,7 @@ void framebuffer_update_display(
assert(mem);
assert(mem_section.offset_within_address_space == base);
+ memory_region_sync_dirty_bitmap(mem);
src_base = cpu_physical_memory_map(base, &src_len, 0);
/* If we can't map the framebuffer then bail. We could try harder,
but it's not really worth it as dirty flag tracking will probably