From: Emilio G. Cota Date: Mon, 24 Jul 2017 16:56:12 +0000 (+0100) Subject: target/arm: fix TCG temp leak in aarch64 rev16 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e4256c3cbf7eefebc0bc6e1f472c47c6dd20b996;p=qemu.git target/arm: fix TCG temp leak in aarch64 rev16 Fix a TCG temporary leak in the new aarch64 rev16 handling. Signed-off-by: Emilio G. Cota Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c index 883e9df0c2..58ed4c6d05 100644 --- a/target/arm/translate-a64.c +++ b/target/arm/translate-a64.c @@ -4051,6 +4051,7 @@ static void handle_rev16(DisasContext *s, unsigned int sf, tcg_gen_shli_i64(tcg_rd, tcg_rd, 8); tcg_gen_or_i64(tcg_rd, tcg_rd, tcg_tmp); + tcg_temp_free_i64(mask); tcg_temp_free_i64(tcg_tmp); }