summaryrefslogtreecommitdiff
path: root/exec.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2013-10-08 11:50:04 +0200
committerJuan Quintela <quintela@redhat.com>2014-01-13 14:04:53 +0100
commit06567942e5e92cc649b608205d5d31ff3ac21c58 (patch)
treed43139aeeca9718a60e10f857f2753b15b259431 /exec.c
parent78d0042642a415b56b3c53a6044f30eff47bf69c (diff)
downloadqemu-06567942e5e92cc649b608205d5d31ff3ac21c58.tar.gz
exec: use accessor function to know if memory is dirty
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Orit Wasserman <owasserm@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exec.c b/exec.c
index 7e49e8e555..c42a2f9794 100644
--- a/exec.c
+++ b/exec.c
@@ -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);
}