Skip to content

Commit 5ba7a75

Browse files
antonblanchardpalmer-dabbelt
authored andcommitted
riscv: Fix toolchain vector detection
A recent change to gcc flags rv64iv as no longer valid: cc1: sorry, unimplemented: Currently the 'V' implementation requires the 'M' extension and as a result vector support is disabled. Fix this by adding m to our toolchain vector detection code. Signed-off-by: Anton Blanchard <[email protected]> Fixes: fa8e7cc ("riscv: Enable Vector code to be built") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent b686ecd commit 5ba7a75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/riscv/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,8 +552,8 @@ config RISCV_ISA_SVPBMT
552552
config TOOLCHAIN_HAS_V
553553
bool
554554
default y
555-
depends on !64BIT || $(cc-option,-mabi=lp64 -march=rv64iv)
556-
depends on !32BIT || $(cc-option,-mabi=ilp32 -march=rv32iv)
555+
depends on !64BIT || $(cc-option,-mabi=lp64 -march=rv64imv)
556+
depends on !32BIT || $(cc-option,-mabi=ilp32 -march=rv32imv)
557557
depends on LLD_VERSION >= 140000 || LD_VERSION >= 23800
558558
depends on AS_HAS_OPTION_ARCH
559559

0 commit comments

Comments
 (0)