target/arm: Add missing TCG temp free in do_2shift_env_64()
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 16 Jun 2020 09:32:26 +0000 (10:32 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 16 Jun 2020 09:32:26 +0000 (10:32 +0100)
In commit 37bfce81b10450071 we accidentally introduced a leak of a TCG
temporary in do_2shift_env_64(); free it.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
target/arm/translate-neon.inc.c

index 7c4888a80c92f5ad2546f701be3c9b202684427a..f2c241a87e9e57c6d5358b7de4a96ded76b5806b 100644 (file)
@@ -1329,6 +1329,7 @@ static bool do_2shift_env_64(DisasContext *s, arg_2reg_shift *a,
         neon_load_reg64(tmp, a->vm + pass);
         fn(tmp, cpu_env, tmp, constimm);
         neon_store_reg64(tmp, a->vd + pass);
+        tcg_temp_free_i64(tmp);
     }
     tcg_temp_free_i64(constimm);
     return true;