qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Richard Henderson <richard.henderson@linaro.org>
To: "Philippe Mathieu-Daudé" <philmd@linaro.org>, qemu-devel@nongnu.org
Subject: Re: [PATCH 3/5] target/alpha: Split out gen_goto_tb
Date: Mon, 29 Apr 2024 11:55:42 -0700	[thread overview]
Message-ID: <84e4fd25-8149-44cc-b4d4-cb1b112ffebe@linaro.org> (raw)
In-Reply-To: <19885855-e0e9-4bb8-9155-a694ff9ea1df@linaro.org>

On 4/29/24 09:58, Philippe Mathieu-Daudé wrote:
> On 25/4/24 01:44, Richard Henderson wrote:
>> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
>> ---
>>   target/alpha/translate.c | 61 ++++++++++++++--------------------------
>>   1 file changed, 21 insertions(+), 40 deletions(-)
> 
> 
>>   static DisasJumpType gen_bdirect(DisasContext *ctx, int ra, int32_t disp)
>>   {
> 
>>       /* Notice branch-to-next; used to initialize RA with the PC.  */
>>       if (disp == 0) {
>> -        return 0;
> 
> This is the single case in the code base of returning a non-DISAS_foo
> as DisasJumpType :)
> 
>> +        return DISAS_NEXT;

Yes.  Note that DISAS_NEXT == 0, so this worked accidentally.
But of course using the correct name is better.

r~





  reply	other threads:[~2024-04-29 18:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-24 23:44 [PATCH 0/5] target/alpha: Implement CF_PCREL Richard Henderson
2024-04-24 23:44 ` [PATCH 1/5] target/alpha: Use cpu_env in preference to ALPHA_CPU Richard Henderson
2024-04-29 14:09   ` Philippe Mathieu-Daudé
2024-04-24 23:44 ` [PATCH 2/5] target/alpha: Hoist branch shift to initial decode Richard Henderson
2024-04-29 14:10   ` Philippe Mathieu-Daudé
2024-04-24 23:44 ` [PATCH 3/5] target/alpha: Split out gen_goto_tb Richard Henderson
2024-04-29 16:58   ` Philippe Mathieu-Daudé
2024-04-29 18:55     ` Richard Henderson [this message]
2024-04-24 23:44 ` [PATCH 4/5] target/alpha: Split out gen_pc_disp Richard Henderson
2024-04-29 14:29   ` Philippe Mathieu-Daudé
2024-04-24 23:44 ` [PATCH 5/5] target/alpha: Implement CF_PCREL 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=84e4fd25-8149-44cc-b4d4-cb1b112ffebe@linaro.org \
    --to=richard.henderson@linaro.org \
    --cc=philmd@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).