qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PULL 34/34] target/ppc: Use probe_write for DCBZ


From: David Gibson
Subject: [PULL 34/34] target/ppc: Use probe_write for DCBZ
Date: Fri, 31 Jan 2020 17:09:24 +1100

From: Richard Henderson <address@hidden>

Using probe_write instead of tlb_vaddr_to_host means that we
process watchpoints and notdirty pages more efficiently.

Signed-off-by: Richard Henderson <address@hidden>
Message-Id: <address@hidden>
Tested-by: Howard Spoelstra <address@hidden>
Signed-off-by: David Gibson <address@hidden>
---
 target/ppc/mem_helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/ppc/mem_helper.c b/target/ppc/mem_helper.c
index 0cb78777e7..98f589552b 100644
--- a/target/ppc/mem_helper.c
+++ b/target/ppc/mem_helper.c
@@ -298,7 +298,7 @@ static void dcbz_common(CPUPPCState *env, target_ulong addr,
     }
 
     /* Try fast path translate */
-    haddr = tlb_vaddr_to_host(env, addr, MMU_DATA_STORE, mmu_idx);
+    haddr = probe_write(env, addr, dcbz_size, mmu_idx, retaddr);
     if (haddr) {
         memset(haddr, 0, dcbz_size);
     } else {
-- 
2.24.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]