aboutsummaryrefslogtreecommitdiff
path: root/target/xtensa
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2022-04-21 13:38:58 -0700
committerMax Filippov <jcmvbkbc@gmail.com>2022-05-06 15:27:40 -0700
commit4ee412df69907b5fc91489732b4013f23dc91083 (patch)
treede9411c37ff90bd32a6cf8c1fff0dcb6aab302ae /target/xtensa
parentf99fbd125b916b484d2d92428e3cd8746cbef14c (diff)
downloadqemu-4ee412df69907b5fc91489732b4013f23dc91083.zip
qemu-4ee412df69907b5fc91489732b4013f23dc91083.tar.gz
qemu-4ee412df69907b5fc91489732b4013f23dc91083.tar.bz2
target/xtensa: use tcg_constant_* for TLB opcodes
dtlb is a boolean flag, use tcg_constant_* for it. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'target/xtensa')
-rw-r--r--target/xtensa/translate.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/target/xtensa/translate.c b/target/xtensa/translate.c
index a21cfa9..3cfcbf9 100644
--- a/target/xtensa/translate.c
+++ b/target/xtensa/translate.c
@@ -1708,10 +1708,9 @@ static void translate_itlb(DisasContext *dc, const OpcodeArg arg[],
const uint32_t par[])
{
#ifndef CONFIG_USER_ONLY
- TCGv_i32 dtlb = tcg_const_i32(par[0]);
+ TCGv_i32 dtlb = tcg_constant_i32(par[0]);
gen_helper_itlb(cpu_env, arg[0].in, dtlb);
- tcg_temp_free(dtlb);
#endif
}
@@ -2048,11 +2047,10 @@ static void translate_ptlb(DisasContext *dc, const OpcodeArg arg[],
const uint32_t par[])
{
#ifndef CONFIG_USER_ONLY
- TCGv_i32 dtlb = tcg_const_i32(par[0]);
+ TCGv_i32 dtlb = tcg_constant_i32(par[0]);
tcg_gen_movi_i32(cpu_pc, dc->pc);
gen_helper_ptlb(arg[0].out, cpu_env, arg[1].in, dtlb);
- tcg_temp_free(dtlb);
#endif
}
@@ -2251,10 +2249,9 @@ static void translate_rtlb(DisasContext *dc, const OpcodeArg arg[],
gen_helper_rtlb0,
gen_helper_rtlb1,
};
- TCGv_i32 dtlb = tcg_const_i32(par[0]);
+ TCGv_i32 dtlb = tcg_constant_i32(par[0]);
helper[par[1]](arg[0].out, cpu_env, arg[1].in, dtlb);
- tcg_temp_free(dtlb);
#endif
}
@@ -2562,10 +2559,9 @@ static void translate_wtlb(DisasContext *dc, const OpcodeArg arg[],
const uint32_t par[])
{
#ifndef CONFIG_USER_ONLY
- TCGv_i32 dtlb = tcg_const_i32(par[0]);
+ TCGv_i32 dtlb = tcg_constant_i32(par[0]);
gen_helper_wtlb(cpu_env, arg[0].in, arg[1].in, dtlb);
- tcg_temp_free(dtlb);
#endif
}