aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/Kconfig.socs
diff options
context:
space:
mode:
authorJisheng Zhang2022-02-11 00:49:43 +0800
committerPalmer Dabbelt2022-03-10 10:05:19 -0800
commitc80ee64a8020ef1a6a92109798080786829b8994 (patch)
tree8d1a3b6c25d99806576f756826e63f8742bb8ed6 /arch/riscv/Kconfig.socs
parent74583f1b92cb3bbba1a3741cea237545c56f506c (diff)
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.socs')
-rw-r--r--arch/riscv/Kconfig.socs4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs
index 6ec44a22278a..c112ab2a9052 100644
--- a/arch/riscv/Kconfig.socs
+++ b/arch/riscv/Kconfig.socs
@@ -14,8 +14,8 @@ config SOC_SIFIVE
select CLK_SIFIVE
select CLK_SIFIVE_PRCI
select SIFIVE_PLIC
- select RISCV_ERRATA_ALTERNATIVE
- select ERRATA_SIFIVE
+ select RISCV_ERRATA_ALTERNATIVE if !XIP_KERNEL
+ select ERRATA_SIFIVE if !XIP_KERNEL
help
This enables support for SiFive SoC platform hardware.