qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Richard Henderson <richard.henderson@linaro.org>
To: qemu-devel@nongnu.org
Subject: Re: [PATCH] tcg: Fix register move type in tcg_out_ld_helper_ret
Date: Thu, 25 May 2023 17:25:12 -0700	[thread overview]
Message-ID: <2d5049e2-13ee-3875-9691-79da18405768@linaro.org> (raw)
In-Reply-To: <20230524200212.1354804-1-richard.henderson@linaro.org>

On 5/24/23 13:02, Richard Henderson wrote:
> The first move was incorrectly using TCG_TYPE_I32 while the second
> move was correctly using TCG_TYPE_REG.  This prevents a 64-bit host
> from moving all 128-bits of the return value.
> 
> Fixes: ebebea53ef8 ("tcg: Support TCG_TYPE_I128 in tcg_out_{ld,st}_helper_{args,ret}")
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
>   tcg/tcg.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tcg/tcg.c b/tcg/tcg.c
> index ac30d484f5..2352ca4ade 100644
> --- a/tcg/tcg.c
> +++ b/tcg/tcg.c
> @@ -5736,8 +5736,8 @@ static void tcg_out_ld_helper_ret(TCGContext *s, const TCGLabelQemuLdst *ldst,
>       mov[0].dst = ldst->datalo_reg;
>       mov[0].src =
>           tcg_target_call_oarg_reg(TCG_CALL_RET_NORMAL, HOST_BIG_ENDIAN);
> -    mov[0].dst_type = TCG_TYPE_I32;
> -    mov[0].src_type = TCG_TYPE_I32;
> +    mov[0].dst_type = TCG_TYPE_REG;
> +    mov[0].src_type = TCG_TYPE_REG;
>       mov[0].src_ext = TCG_TARGET_REG_BITS == 32 ? MO_32 : MO_64;
>   
>       mov[1].dst = ldst->datahi_reg;

Superseded by
Message-Id: <20230526002334.1760495-1-richard.henderson@linaro.org>

r~


      reply	other threads:[~2023-05-26  0:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-24 20:02 [PATCH] tcg: Fix register move type in tcg_out_ld_helper_ret Richard Henderson
2023-05-26  0:25 ` Richard Henderson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2d5049e2-13ee-3875-9691-79da18405768@linaro.org \
    --to=richard.henderson@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).