summaryrefslogtreecommitdiff
path: root/arch/riscv/Kconfig.erratas
diff options
context:
space:
mode:
authorJisheng Zhang <jszhang@kernel.org>2022-02-10 19:49:43 +0300
committerPalmer Dabbelt <palmer@rivosinc.com>2022-03-10 21:05:19 +0300
commitc80ee64a8020ef1a6a92109798080786829b8994 (patch)
tree8d1a3b6c25d99806576f756826e63f8742bb8ed6 /arch/riscv/Kconfig.erratas
parent74583f1b92cb3bbba1a3741cea237545c56f506c (diff)
downloadlinux-c80ee64a8020ef1a6a92109798080786829b8994.tar.xz
riscv: alternative only works on !XIP_KERNEL
The alternative mechanism needs runtime code patching, it can't work on XIP_KERNEL. And the errata workarounds are implemented via the alternative mechanism. So add !XIP_KERNEL dependency for alternative and erratas. Signed-off-by: Jisheng Zhang <jszhang@kernel.org> Fixes: 44c922572952 ("RISC-V: enable XIP") Cc: stable@vger.kernel.org Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/Kconfig.erratas')
-rw-r--r--arch/riscv/Kconfig.erratas1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/Kconfig.erratas b/arch/riscv/Kconfig.erratas
index b44d6ecdb46e..0aacd7052585 100644
--- a/arch/riscv/Kconfig.erratas
+++ b/arch/riscv/Kconfig.erratas
@@ -2,6 +2,7 @@ menu "CPU errata selection"
config RISCV_ERRATA_ALTERNATIVE
bool "RISC-V alternative scheme"
+ depends on !XIP_KERNEL
default y
help
This Kconfig allows the kernel to automatically patch the