aboutsummaryrefslogtreecommitdiff
path: root/cputlb.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2013-10-10 11:20:22 +0200
committerJuan Quintela <quintela@redhat.com>2014-01-13 14:04:54 +0100
commita2cd8c852d2d8c2a084b68b2470f214d6726f6d2 (patch)
treeaa7a3fdb9d822ad2e2398c35851b16a7bff97d18 /cputlb.c
parenta461e389f489e72cdc770ff887512c2c9109bc43 (diff)
memory: s/dirty/clean/ in cpu_physical_memory_is_dirty()
All uses except one really want the other meaning. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Diffstat (limited to 'cputlb.c')
-rw-r--r--cputlb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cputlb.c b/cputlb.c
index ec2140580b..eab91d7b5e 100644
--- a/cputlb.c
+++ b/cputlb.c
@@ -284,7 +284,8 @@ void tlb_set_page(CPUArchState *env, target_ulong vaddr,
/* Write access calls the I/O callback. */
te->addr_write = address | TLB_MMIO;
} else if (memory_region_is_ram(section->mr)
- && !cpu_physical_memory_is_dirty(section->mr->ram_addr + xlat)) {
+ && cpu_physical_memory_is_clean(section->mr->ram_addr
+ + xlat)) {
te->addr_write = address | TLB_NOTDIRTY;
} else {
te->addr_write = address;