summaryrefslogtreecommitdiffstats
path: root/target/ppc/mem_helper.c
diff options
context:
space:
mode:
authorRichard Henderson2020-01-30 00:50:40 +0100
committerDavid Gibson2020-02-03 01:33:11 +0100
commit4dcf078f094d436866ef793aa25c96fba85ac8d0 (patch)
tree555ccfe94a3f71e80cfb4961d737c59c5772956d /target/ppc/mem_helper.c
parenttarget/ppc: Remove redundant mask in DCBZ (diff)
downloadqemu-4dcf078f094d436866ef793aa25c96fba85ac8d0.tar.gz
qemu-4dcf078f094d436866ef793aa25c96fba85ac8d0.tar.xz
qemu-4dcf078f094d436866ef793aa25c96fba85ac8d0.zip
target/ppc: Use probe_write for DCBZ
Using probe_write instead of tlb_vaddr_to_host means that we process watchpoints and notdirty pages more efficiently. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20200129235040.24022-5-richard.henderson@linaro.org> Tested-by: Howard Spoelstra <hsp.cat7@gmail.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'target/ppc/mem_helper.c')
-rw-r--r--target/ppc/mem_helper.c2
1 files changed, 1 insertions, 1 deletions
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 {