qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] disas/mips: Fix branch displacement for BEQZC and BNEZC


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH] disas/mips: Fix branch displacement for BEQZC and BNEZC
Date: Fri, 14 Oct 2022 13:17:54 +0200

On Thu, Oct 13, 2022 at 9:26 PM Richard Henderson
<richard.henderson@linaro.org> wrote:
> 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;
> > +                }

Note this follows the style of this file, ...

> delta = sextract32(l, 0, 21);

... but I agree using sextract() makes it easier to review. I'll respin.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]