Re: [PATCH] powerpc: Implement cross-endian emulation of larx and stcx instructions

2018-03-26 Thread Michael Ellerman
Paul Mackerras writes: > diff --git a/arch/powerpc/lib/sstep.c b/arch/powerpc/lib/sstep.c > index fb9f58b..0590417 100644 > --- a/arch/powerpc/lib/sstep.c > +++ b/arch/powerpc/lib/sstep.c > @@ -2755,8 +2761,11 @@ int emulate_loadstore(struct pt_regs *regs, struct > instruction_op *op) >

[PATCH] powerpc: Implement cross-endian emulation of larx and stcx instructions

2017-09-03 Thread Paul Mackerras
This adds byte-swapping of the values loaded or stored by the load with reservation (larx) and store conditional (stcx) instructions when the execution environment being emulated has the opposite endianness to the kernel. This should have been done in commit d955189ae427 ("powerpc: Handle opposite