Skip to content

Commit

Permalink
exec: use accessor function to know if memory is dirty
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Quintela <[email protected]>
Reviewed-by: Orit Wasserman <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
  • Loading branch information
Juan Quintela committed Jan 13, 2014
1 parent 78d0042 commit 0656794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1508,7 +1508,7 @@ static void notdirty_mem_write(void *opaque, hwaddr ram_addr,
cpu_physical_memory_set_dirty_flags(ram_addr, dirty_flags);
/* we remove the notdirty callback only if the code has been
flushed */
if (dirty_flags == 0xff) {
if (cpu_physical_memory_is_dirty(ram_addr)) {
CPUArchState *env = current_cpu->env_ptr;
tlb_set_dirty(env, env->mem_io_vaddr);
}
Expand Down

0 comments on commit 0656794

Please sign in to comment.