From: Richard Henderson Date: Sat, 25 Feb 2023 01:35:45 +0000 (-1000) Subject: tcg: Use tcg_constant_ptr in do_dup X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e198641015368b77b3de08d891e26e97fb775159;p=qemu.git tcg: Use tcg_constant_ptr in do_dup Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Daniel Henrique Barboza Signed-off-by: Richard Henderson --- diff --git a/tcg/tcg-op-gvec.c b/tcg/tcg-op-gvec.c index a42e13a773..291a65c4bf 100644 --- a/tcg/tcg-op-gvec.c +++ b/tcg/tcg-op-gvec.c @@ -629,7 +629,7 @@ static void do_dup(unsigned vece, uint32_t dofs, uint32_t oprsz, * stores through to memset. */ if (oprsz == maxsz && vece == MO_8) { - TCGv_ptr t_size = tcg_const_ptr(oprsz); + TCGv_ptr t_size = tcg_constant_ptr(oprsz); TCGv_i32 t_val; if (in_32) { @@ -645,7 +645,6 @@ static void do_dup(unsigned vece, uint32_t dofs, uint32_t oprsz, if (in_64) { tcg_temp_free_i32(t_val); } - tcg_temp_free_ptr(t_size); tcg_temp_free_ptr(t_ptr); return; }