]> Git Repo - qemu.git/commitdiff
Fix memory dirty getting API change fallout
authorBlue Swirl <[email protected]>
Sat, 4 Feb 2012 17:09:14 +0000 (17:09 +0000)
committerBlue Swirl <[email protected]>
Sat, 11 Feb 2012 10:39:13 +0000 (10:39 +0000)
Fix confusion in length calculation in commit
cd7a45c95ecf2404810f3c6becb7cb83c5010ad8.

Reported-by: Jan Kiszka <[email protected]>
Signed-off-by: Blue Swirl <[email protected]>
hw/framebuffer.c
hw/sm501.c
hw/vga.c

index ea122fb2668bac20b38694bad88105cff901185f..f4747cd646629ced9ed8822e6eaa6850b6003e88 100644 (file)
@@ -87,7 +87,7 @@ void framebuffer_update_display(
     dest += i * dest_row_pitch;
 
     for (; i < rows; i++) {
-        dirty = memory_region_get_dirty(mem, addr, addr + src_width,
+        dirty = memory_region_get_dirty(mem, addr, src_width,
                                              DIRTY_MEMORY_VGA);
         if (dirty || invalidate) {
             fn(opaque, dest, src, cols, dest_col_pitch);
index 94c0abf4cbd832d81521936876c856aadc412f13..786e07629c9c3e5eb12e50fdd84da812f731545d 100644 (file)
@@ -1327,8 +1327,8 @@ static void sm501_draw_crt(SM501State * s)
         ram_addr_t page1 = offset + width * src_bpp - 1;
 
        /* check dirty flags for each line */
-        update = memory_region_get_dirty(&s->local_mem_region, page0, page1,
-                                         DIRTY_MEMORY_VGA);
+        update = memory_region_get_dirty(&s->local_mem_region, page0,
+                                         page1 - page0, DIRTY_MEMORY_VGA);
 
        /* draw line and change status */
        if (update) {
index d87c4f9f5bb0c215b0ce9f194872aeef28b4d6a1..d27700d41b818f94ebd59fee47675a43796dcaf9 100644 (file)
--- a/hw/vga.c
+++ b/hw/vga.c
@@ -1779,7 +1779,7 @@ static void vga_draw_graphic(VGACommonState *s, int full_update)
         }
         page0 = addr;
         page1 = addr + bwidth - 1;
-        update = memory_region_get_dirty(&s->vram, page0, page1,
+        update = memory_region_get_dirty(&s->vram, page0, page1 - page0,
                                          DIRTY_MEMORY_VGA);
         /* explicit invalidation for the hardware cursor */
         update |= (s->invalidated_y_table[y >> 5] >> (y & 0x1f)) & 1;
This page took 0.026543 seconds and 4 git commands to generate.