On Tue, Sep 04, 2018 at 04:12:07PM -0500, Segher Boessenkool wrote:
> On Mon, Sep 03, 2018 at 08:49:35PM +0530, Sandipan Das wrote:
> > + case 538: /* cnttzw */
> > + if (!cpu_has_feature(CPU_FTR_ARCH_300))
> > + return -1;
> > +
On Mon, Sep 03, 2018 at 08:49:35PM +0530, Sandipan Das wrote:
> + case 538: /* cnttzw */
> + if (!cpu_has_feature(CPU_FTR_ARCH_300))
> + return -1;
> + val = (unsigned int) regs->gpr[rd];
> +
This adds emulation support for the following integer instructions:
* Count Trailing Zeros Word (cnttzw[.])
* Count Trailing Zeros Doubleword (cnttzd[.])
Signed-off-by: Sandipan Das
---
arch/powerpc/lib/sstep.c | 14 ++
1 file changed, 14 insertions(+)
diff --git