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

2022-09-07 Thread Christophe Leroy
Le 23/06/2021 à 05:28, Nicholas Piggin a écrit : 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. Is this this patch still relevant ? If

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

2021-06-22 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_ arch/po