Commit 5416376efe7d33adae215ba0e18d220dd9b3c839
1 parent
f34c9d6f
ram dirty flag update fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1246 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
exec.c
... | ... | @@ -2083,7 +2083,7 @@ void cpu_physical_memory_rw(target_phys_addr_t addr, uint8_t *buf, |
2083 | 2083 | /* invalidate code */ |
2084 | 2084 | tb_invalidate_phys_page_range(addr1, addr1 + l, 0); |
2085 | 2085 | /* set dirty bit */ |
2086 | - phys_ram_dirty[page >> TARGET_PAGE_BITS] = 1; | |
2086 | + phys_ram_dirty[addr1 >> TARGET_PAGE_BITS] = 1; | |
2087 | 2087 | } |
2088 | 2088 | } else { |
2089 | 2089 | if ((pd & ~TARGET_PAGE_MASK) > IO_MEM_ROM && | ... | ... |