Skip to content

Commit

Permalink
target/arm: Use tcg_constant_i32 in translate.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
rth7680 authored and pm215 committed Apr 22, 2022
1 parent 230c90c commit 2c2c65c
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions target/arm/translate.h
Expand Up @@ -332,16 +332,9 @@ static inline void gen_ss_advance(DisasContext *s)
static inline void gen_exception(int excp, uint32_t syndrome,
uint32_t target_el)
{
TCGv_i32 tcg_excp = tcg_const_i32(excp);
TCGv_i32 tcg_syn = tcg_const_i32(syndrome);
TCGv_i32 tcg_el = tcg_const_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);
gen_helper_exception_with_syndrome(cpu_env, tcg_constant_i32(excp),
tcg_constant_i32(syndrome),
tcg_constant_i32(target_el));
}

/* Generate an architectural singlestep exception */
Expand Down

0 comments on commit 2c2c65c

Please sign in to comment.