diff options
author | Wentao_Liang | 2022-02-25 05:01:42 +0100 |
---|---|---|
committer | Peter Maydell | 2022-03-02 20:27:36 +0100 |
commit | 23d5acf3d40f8010275ae9a5a80daf652a97308f (patch) | |
tree | ef2f312cf105e2e1c2bd30291c0141fb25eaf7a7 | |
parent | target/arm: Support PSCI 1.1 and SMCCC 1.0 (diff) | |
download | qemu-23d5acf3d40f8010275ae9a5a80daf652a97308f.tar.gz qemu-23d5acf3d40f8010275ae9a5a80daf652a97308f.tar.xz qemu-23d5acf3d40f8010275ae9a5a80daf652a97308f.zip |
target/arm: Fix early free of TCG temp in handle_simd_shift_fpint_conv()
handle_simd_shift_fpint_conv() was accidentally freeing the TCG
temporary tcg_fpstatus too early, before the last use of it. Move
the free down to where it belongs.
Signed-off-by: Wentao_Liang <Wentao_Liang_g@163.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
[PMM: cleaned up commit message]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r-- | target/arm/translate-a64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c index 5a1df25f91..d1a59fad9c 100644 --- a/target/arm/translate-a64.c +++ b/target/arm/translate-a64.c @@ -9045,9 +9045,9 @@ static void handle_simd_shift_fpint_conv(DisasContext *s, bool is_scalar, } } - tcg_temp_free_ptr(tcg_fpstatus); tcg_temp_free_i32(tcg_shift); gen_helper_set_rmode(tcg_rmode, tcg_rmode, tcg_fpstatus); + tcg_temp_free_ptr(tcg_fpstatus); tcg_temp_free_i32(tcg_rmode); } |