Thread (5 messages) flat view 5 messages, 2 authors, 2022-07-20

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

From: Segher Boessenkool <hidden>
Date: 2022-07-12 16:31:33

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)			(0x7c00007c | __PPC_WC(w))
+#define PPC_RAW_WAIT_BOOKS(w, p)	(0x7c00003c | __PPC_WC(w) | __PPC_PL(p))
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 bit more work now, but less in the future :-)


Segher
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help