[RFC PATCH] powerpc: Emulate nop too
Ananth N Mavinakayanahalli
ananth at in.ibm.com
Fri May 28 14:16:45 EST 2010
On Fri, May 28, 2010 at 12:28:43PM +1000, Michael Neuling wrote:
>
>
> In message <20100527141203.GA20770 at in.ibm.com> you wrote:
> > Hi Paul,
> >
> > While we are at it, can we also add nop to the list of emulated
> > instructions?
> >
> > Ananth
> > ---
> > From: Ananth N Mavinakayanahalli <ananth at in.ibm.com>
> >
> > Emulate ori 0,0,0 (nop).
> >
> > The long winded way is to do:
> >
> > case 24:
> > rd = (instr >> 21) & 0x1f;
> > if (rd != 0)
> > break;
> > rb = (instr >> 11) & 0x1f;
> > if (rb != 0)
> > break;
>
> Don't we just need rb == rd?
Sure. But for this case, just checking against the opcode seems simple
enough.
Ananth
More information about the Linuxppc-dev
mailing list