qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 6/7] framebufer: port to test_and_clear instead of t


From: Juan Quintela
Subject: [Qemu-devel] [PATCH 6/7] framebufer: port to test_and_clear instead of test/reset
Date: Fri, 11 Oct 2013 16:20:49 +0200

From: Juan Quintela <address@hidden>

Signed-off-by: Juan Quintela <address@hidden>
Signed-off-by: Juan Quintela <address@hidden>
---
 hw/display/framebuffer.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/hw/display/framebuffer.c b/hw/display/framebuffer.c
index 4546e42..5369362 100644
--- a/hw/display/framebuffer.c
+++ b/hw/display/framebuffer.c
@@ -88,8 +88,8 @@ void framebuffer_update_display(
     dest += i * dest_row_pitch;

     for (; i < rows; i++) {
-        dirty = memory_region_get_dirty(mem, addr, src_width,
-                                             DIRTY_MEMORY_VGA);
+        dirty = memory_region_test_and_clear_dirty(mem, addr, src_width,
+                                                   DIRTY_MEMORY_VGA);
         if (dirty || invalidate) {
             fn(opaque, dest, src, cols, dest_col_pitch);
             if (first == -1)
@@ -104,8 +104,6 @@ void framebuffer_update_display(
     if (first < 0) {
         goto out;
     }
-    memory_region_reset_dirty(mem, mem_section.offset_within_region, src_len,
-                              DIRTY_MEMORY_VGA);
     *first_row = first;
     *last_row = last;
 out:
-- 
1.8.3.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]