Thread (17 messages) flat view 17 messages, 3 authors, 2021-08-30

Re: [RFC PATCH 5/6] powerpc/microwatt: select POWER9_CPU

From: Christophe Leroy <hidden>
Date: 2021-08-28 09:51:24


Le 27/08/2021 à 18:34, Nicholas Piggin a écrit :
quoted hunk ↗ jump to hunk
Microwatt implements a subset of ISA v3.0 which is equivalent to
the POWER9_CPU selection.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
---
  arch/powerpc/configs/microwatt_defconfig | 1 +
  arch/powerpc/platforms/microwatt/Kconfig | 1 +
  2 files changed, 2 insertions(+)
diff --git a/arch/powerpc/configs/microwatt_defconfig b/arch/powerpc/configs/microwatt_defconfig
index a08b739123da..bf5f2e5905eb 100644
--- a/arch/powerpc/configs/microwatt_defconfig
+++ b/arch/powerpc/configs/microwatt_defconfig
@@ -14,6 +14,7 @@ CONFIG_EMBEDDED=y
  # CONFIG_COMPAT_BRK is not set
  # CONFIG_SLAB_MERGE_DEFAULT is not set
  CONFIG_PPC64=y
+CONFIG_POWER9_CPU=y
That shouldn't be needed in the defconfig because you select it below. You can use make 
savedefconfig to confirm.
quoted hunk ↗ jump to hunk
  # CONFIG_PPC_KUEP is not set
  # CONFIG_PPC_KUAP is not set
  CONFIG_CPU_LITTLE_ENDIAN=y
diff --git a/arch/powerpc/platforms/microwatt/Kconfig b/arch/powerpc/platforms/microwatt/Kconfig
index 823192e9d38a..e0ff2cfc1ca0 100644
--- a/arch/powerpc/platforms/microwatt/Kconfig
+++ b/arch/powerpc/platforms/microwatt/Kconfig
@@ -2,6 +2,7 @@
  config PPC_MICROWATT
  	depends on PPC_BOOK3S_64 && !SMP
  	bool "Microwatt SoC platform"
+	select POWER9_CPU
  	select PPC_XICS
  	select PPC_ICS_NATIVE
  	select PPC_ICP_NATIVE
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help