diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-01-27 23:58:13 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-01-27 23:58:13 +0000 |
commit | 5416376efe7d33adae215ba0e18d220dd9b3c839 (patch) | |
tree | e8530d96b7454ccc8a45a8f8a45461e691d67e9e | |
parent | f34c9d6f10bd4d1c8abcf258e76fec739674a105 (diff) |
ram dirty flag update fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1246 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r-- | exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 && |