OSDN Git Service

target/xtensa: fix missing tcg_temp_free in gen_window_check
authorMax Filippov <jcmvbkbc@gmail.com>
Thu, 21 Apr 2022 20:08:23 +0000 (13:08 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Fri, 6 May 2022 22:27:40 +0000 (15:27 -0700)
commit0269a6cf4ebff2eb6d8f893a5179be818efa90c2
tree6306e1934dc28a576ca0691908de4161fde1a0cb
parent31abf61c4929a91275fe32f1fafe6e6b3e840b2a
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>
target/xtensa/translate.c