Re: [PATCH 6/6] powerpc sstep: Add modsd, modud instruction emulation

2018-09-05 Thread Sandipan Das
Hi Segher, On Wednesday 05 September 2018 02:51 AM, Segher Boessenkool wrote: > On Mon, Sep 03, 2018 at 08:49:38PM +0530, Sandipan Das wrote: >> +#ifdef __powerpc64__ >> +case 265: /* modud */ >> +if (!cpu_has_feature(CPU_FTR_ARCH_300)) >> +

Re: [PATCH 6/6] powerpc sstep: Add modsd, modud instruction emulation

2018-09-04 Thread Segher Boessenkool
On Mon, Sep 03, 2018 at 08:49:38PM +0530, Sandipan Das wrote: > +#ifdef __powerpc64__ > + case 265: /* modud */ > + if (!cpu_has_feature(CPU_FTR_ARCH_300)) > + return -1; > + op->val = regs->gpr[ra] %

[PATCH 6/6] powerpc sstep: Add modsd, modud instruction emulation

2018-09-03 Thread Sandipan Das
This adds emulation support for the following integer instructions: * Modulo Signed Doubleword (modsd) * Modulo Unsigned Doubleword (modud) Signed-off-by: Sandipan Das --- arch/powerpc/lib/sstep.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git