[U-Boot] [PATCH 06/30] riscv: add Kconfig entries for the C and A ISA extensions

Lukas Auer lukas.auer at aisec.fraunhofer.de
Fri Oct 19 22:07:19 UTC 2018


Add Kconfig entries for the C (compressed instructions) and A (atomic
instructions) ISA extensions. Only the C ISA extension is selectable.
This matches the configuration in Linux.

The Kconfig entries are not used yet. A follow-up patch will select the
appropriate compiler flags based on the Kconfig configuration.

Signed-off-by: Lukas Auer <lukas.auer at aisec.fraunhofer.de>
---

 arch/riscv/Kconfig | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index b81e0d990a..e15329c35e 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -38,6 +38,15 @@ config ARCH_RV64I
 
 endchoice
 
+config RISCV_ISA_C
+	bool "Emit compressed instructions"
+	default y
+	help
+	  This enables the compressed instructions ("C") ISA extension.
+
+config RISCV_ISA_A
+	def_bool y
+
 config 32BIT
 	bool
 
-- 
2.17.2



More information about the U-Boot mailing list