diff options
author | Lukas Auer <lukas.auer@aisec.fraunhofer.de> | 2018-11-22 11:26:14 +0100 |
---|---|---|
committer | Andes <uboot@andestech.com> | 2018-11-26 13:57:29 +0800 |
commit | d57ffa650f3d3c928d93706dfd282bb1fdecdd31 (patch) | |
tree | 72a96e1a1b28c9deeb2c7fa179a4803e69934d9e /arch | |
parent | 711585649e85f1c31f8bbe5be51ff1fbfef97d39 (diff) | |
download | u-boot-d57ffa650f3d3c928d93706dfd282bb1fdecdd31.tar.gz |
riscv: add Kconfig entries for the C and A ISA extensions
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@aisec.fraunhofer.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/riscv/Kconfig | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index b81e0d990a..0de77a75d7 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -38,6 +38,17 @@ config ARCH_RV64I endchoice +config RISCV_ISA_C + bool "Emit compressed instructions" + default y + help + Adds "C" to the ISA subsets that the toolchain is allowed to emit + when building U-Boot, which results in compressed instructions in the + U-Boot binary. + +config RISCV_ISA_A + def_bool y + config 32BIT bool |