summaryrefslogtreecommitdiff
path: root/src/arch/riscv/Kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/riscv/Kconfig')
-rw-r--r--src/arch/riscv/Kconfig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/riscv/Kconfig b/src/arch/riscv/Kconfig
index 9d325af759..25a398068a 100644
--- a/src/arch/riscv/Kconfig
+++ b/src/arch/riscv/Kconfig
@@ -24,8 +24,8 @@ config ARCH_RISCV_M
# one implementation that will not have it due
# to security concerns.
bool
- default n if ARCH_RISCV_M_DISABLED
- default y
+ default y if ARCH_RISCV && !ARCH_RISCV_M_DISABLED
+ default n
config ARCH_RISCV_S
# S (supervisor) mode is for kernels. It is optional.