[PATCH] riscv: Fix toolchain vector detection
Conor Dooley
conor at kernel.org
Mon Aug 19 09:45:04 PDT 2024
On Mon, Aug 19, 2024 at 12:11:31AM +0000, Anton Blanchard wrote:
> 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 at tenstorrent.com>
This one definitely needs a cc: stable, it's required as far back as
6.6, right?
> ---
> arch/riscv/Kconfig | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
> index 0f3cd7c3a436..939ea7f6a228 100644
> --- a/arch/riscv/Kconfig
> +++ b/arch/riscv/Kconfig
> @@ -552,8 +552,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
>
> --
> 2.34.1
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-riscv/attachments/20240819/b9dc1d9c/attachment.sig>
More information about the linux-riscv
mailing list