]> Git Repo - qemu.git/blobdiff - cputlb.c
spapr: Change DRC attach & detach methods to functions
[qemu.git] / cputlb.c
index f5d056cc083ff24777d72653c80222a0c27d1b65..743776ae1907edfedd6966e62061fb55de6ab33e 100644 (file)
--- a/cputlb.c
+++ b/cputlb.c
@@ -930,7 +930,13 @@ static void *atomic_mmu_lookup(CPUArchState *env, target_ulong addr,
         tlb_addr = tlbe->addr_write;
     }
 
-    /* Notice an IO access, or a notdirty page.  */
+    /* Check notdirty */
+    if (unlikely(tlb_addr & TLB_NOTDIRTY)) {
+        tlb_set_dirty(ENV_GET_CPU(env), addr);
+        tlb_addr = tlb_addr & ~TLB_NOTDIRTY;
+    }
+
+    /* Notice an IO access  */
     if (unlikely(tlb_addr & ~TARGET_PAGE_MASK)) {
         /* There's really nothing that can be done to
            support this apart from stop-the-world.  */
This page took 0.020228 seconds and 4 git commands to generate.