Re: [PATCH 1/2] powerpc: add BookS wait opcode macro

2022-07-20 Thread Segher Boessenkool
On Wed, Jul 20, 2022 at 07:54:54PM +1000, Nicholas Piggin wrote: > Excerpts from Segher Boessenkool's message of July 13, 2022 2:29 am: > > The embedded extensions are no longer part of the PowerPC architecture, > > so wouldn't it be a better way forward to rename the existing one, > > instead? A

Re: [PATCH 1/2] powerpc: add BookS wait opcode macro

2022-07-20 Thread Nicholas Piggin
Excerpts from Segher Boessenkool's message of July 13, 2022 2:29 am: > Hi! > > On Mon, Jul 11, 2022 at 01:11:27PM +1000, Nicholas Piggin wrote: >> The wait instruction has a different encoding between BookE and BookS. >> Add the BookS variant. > >> #define PPC_RAW_WAIT(w) (0x

Re: [PATCH 1/2] powerpc: add BookS wait opcode macro

2022-07-12 Thread Segher Boessenkool
Hi! On Mon, Jul 11, 2022 at 01:11:27PM +1000, Nicholas Piggin wrote: > The wait instruction has a different encoding between BookE and BookS. > Add the BookS variant. > #define PPC_RAW_WAIT(w) (0x7c7c | __PPC_WC(w)) > +#define PPC_RAW_WAIT_BOOKS(w, p) (0x7c3c | _

[PATCH 1/2] powerpc: add BookS wait opcode macro

2022-07-10 Thread Nicholas Piggin
The wait instruction has a different encoding between BookE and BookS. Add the BookS variant. Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/ppc-opcode.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/include/asm/ppc-opcode.h b/arch/powerpc/include/asm/ppc-opco