diff options
| author | Anton Blanchard <antonb@tenstorrent.com> | 2024-08-19 00:11:31 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-09-12 11:13:12 +0200 |
| commit | 775a2238aa989a9345c11542fbac19b87de1a397 (patch) | |
| tree | 0e0a38a6dd716aa6220fe4f470eca89dffdf749e | |
| parent | 1a46c7f6546b73cbf36f5a618a1a6bbb45391eb3 (diff) | |
| download | linux-775a2238aa989a9345c11542fbac19b87de1a397.tar.gz linux-775a2238aa989a9345c11542fbac19b87de1a397.tar.bz2 linux-775a2238aa989a9345c11542fbac19b87de1a397.zip | |
riscv: Fix toolchain vector detection
[ Upstream commit 5ba7a75a53dffbf727e842b5847859bb482ac4aa ]
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 <antonb@tenstorrent.com>
Fixes: fa8e7cce55da ("riscv: Enable Vector code to be built")
Link: https://lore.kernel.org/r/20240819001131.1738806-1-antonb@tenstorrent.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
| -rw-r--r-- | arch/riscv/Kconfig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 0525ee2d63c7..006232b67b46 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -545,8 +545,8 @@ config RISCV_ISA_SVPBMT config TOOLCHAIN_HAS_V bool default y - depends on !64BIT || $(cc-option,-mabi=lp64 -march=rv64iv) - depends on !32BIT || $(cc-option,-mabi=ilp32 -march=rv32iv) + depends on !64BIT || $(cc-option,-mabi=lp64 -march=rv64imv) + depends on !32BIT || $(cc-option,-mabi=ilp32 -march=rv32imv) depends on LLD_VERSION >= 140000 || LD_VERSION >= 23800 depends on AS_HAS_OPTION_ARCH |
