qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Richard Henderson <richard.henderson@linaro.org>
To: "Philippe Mathieu-Daudé" <philmd@fungible.com>, qemu-devel@nongnu.org
Cc: "Jiaxun Yang" <jiaxun.yang@flygoat.com>,
	"Philippe Mathieu-Daudé" <f4bug@amsat.org>,
	"Aurelien Jarno" <aurelien@aurel32.net>,
	"Aleksandar Rikalo" <aleksandar.rikalo@syrmia.com>,
	"David Daney" <david.daney@fungible.com>,
	"Marcin Nowakowski" <marcin.nowakowski@fungible.com>
Subject: Re: [PATCH] disas/mips: Fix branch displacement for BEQZC and BNEZC
Date: Fri, 14 Oct 2022 06:26:17 +1100	[thread overview]
Message-ID: <423f0bd9-8c43-46fb-04a5-292e8385b69a@linaro.org> (raw)
In-Reply-To: <20221013145246.4922-1-philmd@fungible.com>

On 10/14/22 07:52, Philippe Mathieu-Daudé wrote:
> +                /* Sign extend the displacement with 21 bits.  */
> +                delta = l & 0x1FFFFF;
> +                if (delta & 0x100000) {
> +                    delta |= ~0x1FFFFF;
> +                }

delta = sextract32(l, 0, 21);

r~


  reply	other threads:[~2022-10-13 19:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-13 14:52 [PATCH] disas/mips: Fix branch displacement for BEQZC and BNEZC Philippe Mathieu-Daudé
2022-10-13 19:26 ` Richard Henderson [this message]
2022-10-14 11:17   ` Philippe Mathieu-Daudé

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=423f0bd9-8c43-46fb-04a5-292e8385b69a@linaro.org \
    --to=richard.henderson@linaro.org \
    --cc=aleksandar.rikalo@syrmia.com \
    --cc=aurelien@aurel32.net \
    --cc=david.daney@fungible.com \
    --cc=f4bug@amsat.org \
    --cc=jiaxun.yang@flygoat.com \
    --cc=marcin.nowakowski@fungible.com \
    --cc=philmd@fungible.com \
    --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).