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 3/8] target/rx: Propagate DisasContext to generated helpers
Date: Thu, 9 Oct 2025 10:32:13 -0700	[thread overview]
Message-ID: <7a83738c-4b98-4a21-9292-2672e04866a9@linaro.org> (raw)
In-Reply-To: <20251009151607.26278-4-philmd@linaro.org>

On 10/9/25 08:16, Philippe Mathieu-Daudé wrote:
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
>   target/rx/translate.c | 24 ++++++++++++------------
>   1 file changed, 12 insertions(+), 12 deletions(-)
> 
> diff --git a/target/rx/translate.c b/target/rx/translate.c
> index 9a2be2107bd..f02a8cc5dc9 100644
> --- a/target/rx/translate.c
> +++ b/target/rx/translate.c
> @@ -1894,7 +1894,7 @@ static bool trans_ITOF(DisasContext *ctx, arg_ITOF * a)
>       return true;
>   }
>   
> -static void rx_bsetm(TCGv mem, TCGv mask)
> +static void rx_bsetm(DisasContext *ctx, TCGv mem, TCGv mask)
>   {
>       TCGv val;
>       val = tcg_temp_new();
> @@ -1903,7 +1903,7 @@ static void rx_bsetm(TCGv mem, TCGv mask)
>       rx_gen_st(MO_8, val, mem);
>   }
>   
> -static void rx_bclrm(TCGv mem, TCGv mask)
> +static void rx_bclrm(DisasContext *ctx, TCGv mem, TCGv mask)
>   {
>       TCGv val;
>       val = tcg_temp_new();
> @@ -1912,7 +1912,7 @@ static void rx_bclrm(TCGv mem, TCGv mask)
>       rx_gen_st(MO_8, val, mem);
>   }
>   
> -static void rx_btstm(TCGv mem, TCGv mask)
> +static void rx_btstm(DisasContext *ctx, TCGv mem, TCGv mask)
>   {
>       TCGv val;
>       val = tcg_temp_new();
> @@ -1922,7 +1922,7 @@ static void rx_btstm(TCGv mem, TCGv mask)
>       tcg_gen_mov_i32(cpu_psw_z, cpu_psw_c);
>   }
>   
> -static void rx_bnotm(TCGv mem, TCGv mask)
> +static void rx_bnotm(DisasContext *ctx, TCGv mem, TCGv mask)
>   {
>       TCGv val;
>       val = tcg_temp_new();
> @@ -1931,17 +1931,17 @@ static void rx_bnotm(TCGv mem, TCGv mask)
>       rx_gen_st(MO_8, val, mem);
>   }
>   
> -static void rx_bsetr(TCGv reg, TCGv mask)
> +static void rx_bsetr(DisasContext *ctx, TCGv reg, TCGv mask)
>   {
>       tcg_gen_or_i32(reg, reg, mask);
>   }
>   
> -static void rx_bclrr(TCGv reg, TCGv mask)
> +static void rx_bclrr(DisasContext *ctx, TCGv reg, TCGv mask)
>   {
>       tcg_gen_andc_i32(reg, reg, mask);
>   }
>   
> -static inline void rx_btstr(TCGv reg, TCGv mask)
> +static inline void rx_btstr(DisasContext *ctx, TCGv reg, TCGv mask)
>   {
>       TCGv t0;
>       t0 = tcg_temp_new();
> @@ -1950,7 +1950,7 @@ static inline void rx_btstr(TCGv reg, TCGv mask)
>       tcg_gen_mov_i32(cpu_psw_z, cpu_psw_c);
>   }
>   
> -static inline void rx_bnotr(TCGv reg, TCGv mask)
> +static inline void rx_bnotr(DisasContext *ctx, TCGv reg, TCGv mask)
>   {
>       tcg_gen_xor_i32(reg, reg, mask);
>   }

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

These really shouldn't be marked inline, but that's another issue.


r~


  reply	other threads:[~2025-10-09 17:32 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-09 15:15 [PATCH 0/8] target/rx: Remove target_ulong and MO_TE uses Philippe Mathieu-Daudé
2025-10-09 15:16 ` [PATCH 1/8] target/rx: Replace target_ulong -> vaddr for translator API uses Philippe Mathieu-Daudé
2025-10-09 17:30   ` Richard Henderson
2025-10-09 15:16 ` [PATCH 2/8] target/rx: Use MemOp type in gen_ld[u]() and gen_st() Philippe Mathieu-Daudé
2025-10-09 17:30   ` Richard Henderson
2025-10-09 15:16 ` [PATCH 3/8] target/rx: Propagate DisasContext to generated helpers Philippe Mathieu-Daudé
2025-10-09 17:32   ` Richard Henderson [this message]
2025-10-09 15:16 ` [PATCH 4/8] target/rx: Propagate DisasContext to push() / pop() Philippe Mathieu-Daudé
2025-10-09 17:32   ` Richard Henderson
2025-10-09 15:16 ` [PATCH 5/8] target/rx: Propagate DisasContext to gen_ld[u]() and gen_st() Philippe Mathieu-Daudé
2025-10-09 17:33   ` Richard Henderson
2025-10-09 15:16 ` [PATCH 6/8] target/rx: Factor mo_endian() helper out Philippe Mathieu-Daudé
2025-10-09 17:34   ` Richard Henderson
2025-10-09 15:16 ` [PATCH 7/8] target/rx: Replace MO_TE -> MO_LE Philippe Mathieu-Daudé
2025-10-09 17:35   ` Richard Henderson
2025-10-09 15:16 ` [PATCH 8/8] target/rx: Expand TCG register definitions for 32-bit target Philippe Mathieu-Daudé
2025-10-09 17:36   ` Richard Henderson

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=7a83738c-4b98-4a21-9292-2672e04866a9@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).