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: "Philippe Mathieu-Daudé" <f4bug@amsat.org>,
	"Jiaxun Yang" <jiaxun.yang@flygoat.com>,
	"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 v2] disas/mips: Fix branch displacement for BEQZC and BNEZC
Date: Sat, 15 Oct 2022 05:54:25 +1100	[thread overview]
Message-ID: <b6aac649-a920-1a86-578a-5a5b7ee3626f@linaro.org> (raw)
In-Reply-To: <20221014112322.61119-1-philmd@fungible.com>

On 10/14/22 22:23, Philippe Mathieu-Daudé wrote:
> From: David Daney<david.daney@fungible.com>
> 
> disas/mips.c got added in commit 6643d27ea0 ("MIPS disas support")
> apparently based on binutils tag 'gdb_6_1-branchpoint' [1].
> Back then, MIPSr6 was not supported (added in binutils commit
> 7361da2c952 during 2014 [2]).
> 
> Binutils codebase diverged so much over the last 18 years, it is
> not possible to simply cherry-pick their changes, so fix it BEQZC /
> BNEZC 21-bit signed branch displacement locally.
> 
> [1]https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=opcodes/mips-dis.c;hb=refs/tags/gdb_6_1-branchpoint
> [2]https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=7361da2c952
> 
> Fixes: 31837be3ee ("target-mips: add compact and CP1 branches")
> Signed-off-by: David Daney<david.daney@fungible.com>
> Reviewed-by: Marcin Nowakowski<marcin.nowakowski@fungible.com>
> [PMD: Added commit description]
> Signed-off-by: Philippe Mathieu-Daudé<philmd@fungible.com>
> ---
> v2: Use sextract32 (rth)
> ---
>   disas/mips.c | 12 ++++++++++--
>   1 file changed, 10 insertions(+), 2 deletions(-)

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

r~


      reply	other threads:[~2022-10-14 18:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-14 11:23 [PATCH v2] disas/mips: Fix branch displacement for BEQZC and BNEZC Philippe Mathieu-Daudé
2022-10-14 18:54 ` 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=b6aac649-a920-1a86-578a-5a5b7ee3626f@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).