]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: alternative only works on !XIP_KERNEL
authorJisheng Zhang <jszhang@kernel.org>
Thu, 10 Feb 2022 16:49:43 +0000 (00:49 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 10 Mar 2022 18:05:19 +0000 (10:05 -0800)
commit41a2266e8543abc694606702eeb1d89d9c03fc2e
tree8d1a3b6c25d99806576f756826e63f8742bb8ed6
parent73e04bdcfca0b09b18916e2f5b72b35fb0969c4f
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: d8fd95cc20ec ("RISC-V: enable XIP")
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/Kconfig.erratas
arch/riscv/Kconfig.socs