aboutsummaryrefslogtreecommitdiff
path: root/target/ppc/translate.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2024-07-01 20:10:53 -0700
committerRichard Henderson <richard.henderson@linaro.org>2024-07-23 10:56:16 +1000
commitc6d84fd7cfb46a67c5c0404e93ed024cd3a14e6e (patch)
tree0d0cb64cf3d50fadc1d0e86b0e47aa0479d0116b /target/ppc/translate.c
parent62fe57c6d23fe8136d281f0e37ec8a9fab08b60a (diff)
downloadqemu-c6d84fd7cfb46a67c5c0404e93ed024cd3a14e6e.zip
qemu-c6d84fd7cfb46a67c5c0404e93ed024cd3a14e6e.tar.gz
qemu-c6d84fd7cfb46a67c5c0404e93ed024cd3a14e6e.tar.bz2
target/ppc: Merge helper_{dcbz,dcbzep}
Merge the two and pass the mmu_idx directly from translation. Swap the argument order in dcbz_common to avoid extra swaps. Reviewed-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/ppc/translate.c')
-rw-r--r--target/ppc/translate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/ppc/translate.c b/target/ppc/translate.c
index 9e472ab..cba943a 100644
--- a/target/ppc/translate.c
+++ b/target/ppc/translate.c
@@ -4458,7 +4458,7 @@ static void gen_dcbz(DisasContext *ctx)
}
#endif
- gen_helper_dcbz(tcg_env, tcgv_addr);
+ gen_helper_dcbz(tcg_env, tcgv_addr, tcg_constant_i32(ctx->mem_idx));
}
/* dcbzep */
@@ -4468,7 +4468,7 @@ static void gen_dcbzep(DisasContext *ctx)
gen_set_access_type(ctx, ACCESS_CACHE);
gen_addr_reg_index(ctx, tcgv_addr);
- gen_helper_dcbzep(tcg_env, tcgv_addr);
+ gen_helper_dcbz(tcg_env, tcgv_addr, tcg_constant_i32(PPC_TLB_EPID_STORE));
}
/* dst / dstt */