summaryrefslogtreecommitdiffstats
path: root/target/xtensa
diff options
context:
space:
mode:
authorMax Filippov2022-04-21 22:08:23 +0200
committerMax Filippov2022-05-07 00:27:40 +0200
commit0269a6cf4ebff2eb6d8f893a5179be818efa90c2 (patch)
tree6306e1934dc28a576ca0691908de4161fde1a0cb /target/xtensa
parentMerge tag 'pull-ppc-20220505' of https://gitlab.com/danielhb/qemu into staging (diff)
downloadqemu-0269a6cf4ebff2eb6d8f893a5179be818efa90c2.tar.gz
qemu-0269a6cf4ebff2eb6d8f893a5179be818efa90c2.tar.xz
qemu-0269a6cf4ebff2eb6d8f893a5179be818efa90c2.zip
target/xtensa: fix missing tcg_temp_free in gen_window_check
pc and w are allocated with tcg_const_i32 but not freed in gen_window_check. Use tcg_constant_i32 for them both. Fixes: 2db59a76c421 ("target-xtensa: record available window in TB flags") 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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/xtensa/translate.c b/target/xtensa/translate.c
index 1485df2f22..591d87b4ef 100644
--- a/target/xtensa/translate.c
+++ b/target/xtensa/translate.c
@@ -571,8 +571,8 @@ static bool gen_window_check(DisasContext *dc, uint32_t mask)
unsigned r = 31 - clz32(mask);
if (r / 4 > dc->window) {
- TCGv_i32 pc = tcg_const_i32(dc->pc);
- TCGv_i32 w = tcg_const_i32(r / 4);
+ TCGv_i32 pc = tcg_constant_i32(dc->pc);
+ TCGv_i32 w = tcg_constant_i32(r / 4);
gen_helper_window_check(cpu_env, pc, w);
dc->base.is_jmp = DISAS_NORETURN;