powerpc: Don't hide eh field of lwarx behind a macro
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 2 Aug 2022 09:02:37 +0000 (11:02 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 10 Aug 2022 05:32:02 +0000 (15:32 +1000)
commiteb5a33ea31190c189ca4a59de4687b0877662c06
tree9c708db774fac1c84154c09371c08e4cdc8a2d83
parent18db466a9a306406dab3b134014d9f6ed642471c
powerpc: Don't hide eh field of lwarx behind a macro

The eh field must remain 0 for PPC32 and is only used
by PPC64.

Don't hide that behind a macro, just leave the responsibility
to the user.

At the time being, the only users of PPC_RAW_L{WDQ}ARX are
setting the eh field to 0, so the special handling of __PPC_EH
is useless. Just take the value given by the caller.

Same for DEFINE_TESTOP(), don't do special handling in that
macro, ensure the caller hands over the proper eh value.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
[mpe: Use 'n' constraint per Segher]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/8b9c8a1a14f9143552a85fcbf96698224a8c2469.1659430931.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/bitops.h
arch/powerpc/include/asm/ppc-opcode.h