target/arm: Use tcg_constant_i32 in translate.h

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
Richard Henderson 2022-04-17 10:43:49 -07:00 committed by Peter Maydell
parent 230c90ceb4
commit 2c2c65c01e
1 changed files with 3 additions and 10 deletions

View File

@ -332,16 +332,9 @@ static inline void gen_ss_advance(DisasContext *s)
static inline void gen_exception(int excp, uint32_t syndrome, static inline void gen_exception(int excp, uint32_t syndrome,
uint32_t target_el) uint32_t target_el)
{ {
TCGv_i32 tcg_excp = tcg_const_i32(excp); gen_helper_exception_with_syndrome(cpu_env, tcg_constant_i32(excp),
TCGv_i32 tcg_syn = tcg_const_i32(syndrome); tcg_constant_i32(syndrome),
TCGv_i32 tcg_el = tcg_const_i32(target_el); tcg_constant_i32(target_el));
gen_helper_exception_with_syndrome(cpu_env, tcg_excp,
tcg_syn, tcg_el);
tcg_temp_free_i32(tcg_el);
tcg_temp_free_i32(tcg_syn);
tcg_temp_free_i32(tcg_excp);
} }
/* Generate an architectural singlestep exception */ /* Generate an architectural singlestep exception */