From 2a6cb6690f614b0cf4e1e06eb226c1e1374113e4 Mon Sep 17 00:00:00 2001 From: Paul Burton Date: Fri, 11 Jul 2014 16:47:14 +0100 Subject: [PATCH] MIPS: Don't build MSA support unless it can be used MSA requires that Status.FR == 1, so for MIPS32 tasks MSA can only be used if CONFIG_MIPS_O32_FP64_SUPPORT is enabled. If it is not & the kernel is 32bit, there's no point including support for MSA. Signed-off-by: Paul Burton Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/7310/ Signed-off-by: Ralf Baechle --- arch/mips/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 5652bd4a9220..a159a8f70c8d 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -2117,6 +2117,7 @@ config CPU_MICROMIPS config CPU_HAS_MSA bool "Support for the MIPS SIMD Architecture" depends on CPU_SUPPORTS_MSA + depends on 64BIT || MIPS_O32_FP64_SUPPORT default y help MIPS SIMD Architecture (MSA) introduces 128 bit wide vector registers -- 2.39.5