diff mbox series

[v2,04/11] riscv: Add an option to default to RV64I

Message ID 256bf02e-5e6b-d903-f7ef-9fcbf05c9918@gmail.com
State New
Headers show
Series riscv: Add Sipeed Maix support | expand

Commit Message

Sean Anderson Jan. 15, 2020, 10:51 p.m. UTC
This allows 64-bit boards to default to the 64-bit instruction set
without changing the current default of 32-bit.

Signed-off-by: Sean Anderson <seanga2 at gmail.com>
---
 arch/riscv/Kconfig | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Rick Chen Jan. 21, 2020, 2:16 a.m. UTC | #1
Hi Sean,

> From: Sean Anderson [mailto:seanga2 at gmail.com]
> Sent: Thursday, January 16, 2020 6:52 AM
> To: U-Boot Mailing List; Rick Jian-Zhi Chen(陳建志)
> Subject: [PATCH v2 04/11] riscv: Add an option to default to RV64I
>
> This allows 64-bit boards to default to the 64-bit instruction set without changing the current default of 32-bit.
>
> Signed-off-by: Sean Anderson <seanga2 at gmail.com>
> ---
>  arch/riscv/Kconfig | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 85e15ebffa..9a7b0334c2 100644
> --- a/arch/riscv/Kconfig
> +++ b/arch/riscv/Kconfig
> @@ -60,8 +60,12 @@ source "arch/riscv/cpu/generic/Kconfig"
>
>  # architecture-specific options below
>

This is a redundant declaration.
There have CONFIG_ARCH_RV64I=y already in sipeed_maix_bitm_defconfig

Thanks,
Rick

> +config ARCH_DEFAULT_RV64I
> +       bool
> +
>  choice
>         prompt "Base ISA"
> +       default ARCH_RV64I if ARCH_DEFAULT_RV64I
>         default ARCH_RV32I
>
>  config ARCH_RV32I
> --
> 2.24.1
>
diff mbox series

Patch

diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index 85e15ebffa..9a7b0334c2 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -60,8 +60,12 @@  source "arch/riscv/cpu/generic/Kconfig"
 
 # architecture-specific options below
 
+config ARCH_DEFAULT_RV64I
+	bool
+
 choice
 	prompt "Base ISA"
+	default ARCH_RV64I if ARCH_DEFAULT_RV64I
 	default ARCH_RV32I
 
 config ARCH_RV32I