Byte (lbarx/stbcx.) and half word (lharx/sthcx.) atomic instructions
were introduced in Power ISA 2.06 and are implemented on POWER7 and
later CPUs. Select PPC_HAS_LBARX_LHARX for Power10 as well.

Signed-off-by: Nysal Jan K.A. <[email protected]>
---
 arch/powerpc/platforms/Kconfig.cputype | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/powerpc/platforms/Kconfig.cputype 
b/arch/powerpc/platforms/Kconfig.cputype
index a42fd4c64159..25d4a5eb3216 100644
--- a/arch/powerpc/platforms/Kconfig.cputype
+++ b/arch/powerpc/platforms/Kconfig.cputype
@@ -178,6 +178,7 @@ config POWER10_CPU
        select ARCH_HAS_FAST_MULTIPLIER
        select PPC_HAVE_PREFIXED_SUPPORT
        select PPC_HAVE_PCREL_SUPPORT
+       select PPC_HAS_LBARX_LHARX
        select PPC_HAS_LQARX
 
 config E5500_CPU
-- 
2.52.0


Reply via email to