]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
riscv: Fix toolchain vector detection
authorAnton Blanchard <antonb@tenstorrent.com>
Mon, 19 Aug 2024 00:11:31 +0000 (00:11 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Sep 2024 09:11:45 +0000 (11:11 +0200)
commit8289dc916e9ef8b9bd1d8dc6b4ccaaa27c6ee7dc
treecc3d8d05653fb0442600cbbf377c7f92012557f2
parentb27ea9c96efd2c252a981fb00d0f001b86c90f3e
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>
arch/riscv/Kconfig