diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2022-04-17 10:43:49 -0700 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2022-04-22 14:44:55 +0100 |
commit | 2c2c65c01ecc474410688f4524e6fd22d2934905 (patch) | |
tree | 8b320331596fe4f6ae749e23268040c57a50c3a1 /target/arm/translate.h | |
parent | 230c90ceb4c35abdcb52871835e909bbbe5d4209 (diff) | |
download | qemu-2c2c65c01ecc474410688f4524e6fd22d2934905.zip qemu-2c2c65c01ecc474410688f4524e6fd22d2934905.tar.gz qemu-2c2c65c01ecc474410688f4524e6fd22d2934905.tar.bz2 |
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>
Diffstat (limited to 'target/arm/translate.h')
-rw-r--r-- | target/arm/translate.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/target/arm/translate.h b/target/arm/translate.h index 050d80f..6f0ebdc 100644 --- a/target/arm/translate.h +++ b/target/arm/translate.h @@ -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 */ |