]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
ram dirty flag update fix
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 27 Jan 2005 23:58:13 +0000 (23:58 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 27 Jan 2005 23:58:13 +0000 (23:58 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1246 c046a42c-6fe2-441c-8c8c-71466251a162

exec.c

diff --git a/exec.c b/exec.c
index 40bd60a9f0d8534669cfb3afaaff886c7c288950..0dd14f9e24ae344ef06e5d871a69befa146b37f1 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -2083,7 +2083,7 @@ void cpu_physical_memory_rw(target_phys_addr_t addr, uint8_t *buf,
                 /* invalidate code */
                 tb_invalidate_phys_page_range(addr1, addr1 + l, 0);
                 /* set dirty bit */
-                phys_ram_dirty[page >> TARGET_PAGE_BITS] = 1;                
+                phys_ram_dirty[addr1 >> TARGET_PAGE_BITS] = 1;                
             }
         } else {
             if ((pd & ~TARGET_PAGE_MASK) > IO_MEM_ROM &&