diff options
Diffstat (limited to 'cputlb.c')
| -rw-r--r-- | cputlb.c | 3 |
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; |