Skip to content

Commit

Permalink
target/xtensa: fix missing tcg_temp_free in gen_window_check
Browse files Browse the repository at this point in the history
pc and w are allocated with tcg_const_i32 but not freed in
gen_window_check. Use tcg_constant_i32 for them both.

Fixes: 2db59a7 ("target-xtensa: record available window in TB flags")
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
  • Loading branch information
jcmvbkbc committed May 6, 2022
1 parent 31abf61 commit 0269a6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions target/xtensa/translate.c
Expand Up @@ -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;
Expand Down

0 comments on commit 0269a6c

Please sign in to comment.