[PATCH] sim: pru: Add support for LMBD instruction

Dimitar Dimitrov dimitar@dinux.eu
Thu Nov 12 20:56:03 GMT 2020


On сряда, 11 ноември 2020 г. 23:09:05 EET Andrew Burgess wrote:
> * Dimitar Dimitrov <dimitar@dinux.eu> [2020-11-10 21:11:06 +0200]:
> 
> 
> 
> > Binutils support for LMBD instruction was merged [1]. So add it also
> > to simulator.
> > 
> > LMBD instruction does left-most-bit-detection. It returns 32 if
> > the given bit value is not found in the provided word value.
> > 
> > [1] https://sourceware.org/pipermail/binutils/2020-October/113901.html
> > 
> > sim/pru/ChangeLog:
> > 
> > * pru.h (RS1SEL): New macro.
> > (RS1_WIDTH): New macro.
> > * pru.isa: Describe the LMBD instruction.
> > 
> > sim/testsuite/sim/pru/ChangeLog:
> > 
> > * lmbd.s: New test.
> 
> LGTM.  Thanks for doing this.
> 
> Andrew

Thank you. I pushed it as e57cf1f2cdf819946494becf282e47194aa6216d

Regards,
Dimitar




More information about the Gdb-patches mailing list