Re: [PATCH v3] powerpc: add compile-time support for lbarx, lharx

2022-11-30 Thread Michael Ellerman
On Fri, 9 Sep 2022 15:23:12 +1000, Nicholas Piggin wrote: > ISA v2.06 (POWER7 and up) as well as e6500 support lbarx and lharx. > Add a compile option that allows code to use it, and add support in > cmpxchg and xchg 8 and 16 bit values without shifting and masking. > > Applied to powerpc/next.

[PATCH v3] powerpc: add compile-time support for lbarx, lharx

2022-09-08 Thread Nicholas Piggin
ISA v2.06 (POWER7 and up) as well as e6500 support lbarx and lharx. Add a compile option that allows code to use it, and add support in cmpxchg and xchg 8 and 16 bit values without shifting and masking. Signed-off-by: Nicholas Piggin --- v2: Fixed lwarx->lharx typo, switched to PPC_HAS_ v3: Rebas