RISC-V: remove toolchain version checks for Zicbom
authorConor Dooley <conor.dooley@microchip.com>
Sun, 8 Jan 2023 16:33:56 +0000 (16:33 +0000)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 15 Feb 2023 05:29:53 +0000 (21:29 -0800)
commit75c53905f8738fecf691a78de401250e298900f9
tree7eaa218caf17308793f39c4c74622ceafdd27b28
parentdd23e9535889c8b8d7ea7d6064ad16be903f4270
RISC-V: remove toolchain version checks for Zicbom

Commit b8c86872d1dc ("riscv: fix detection of toolchain Zicbom
support") fixed building on systems where Zicbom was supported by the
compiler/assembler but not by the linker in an easily backportable
manner.
Now that the we have insn-defs for the 3 instructions, toolchain support
is no longer required for Zicbom.
Stop emitting "_zicbom" in -march when Zicbom is enabled & drop the
version checks entirely.

Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Link: https://lore.kernel.org/r/20230108163356.3063839-4-conor@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/Kconfig
arch/riscv/Makefile