diff options
author | Paul Burton <paul.burton@imgtec.com> | 2014-07-11 11:47:14 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-08-01 18:06:45 -0400 |
commit | 2a6cb6690f614b0cf4e1e06eb226c1e1374113e4 (patch) | |
tree | 8b98d8224853cf28cba5927a3b9731c8d0505307 /arch | |
parent | 7daef8f261e509bea79ea3b0076e624135259bc1 (diff) |
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 <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/7310/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
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 | |||
2117 | config CPU_HAS_MSA | 2117 | config CPU_HAS_MSA |
2118 | bool "Support for the MIPS SIMD Architecture" | 2118 | bool "Support for the MIPS SIMD Architecture" |
2119 | depends on CPU_SUPPORTS_MSA | 2119 | depends on CPU_SUPPORTS_MSA |
2120 | depends on 64BIT || MIPS_O32_FP64_SUPPORT | ||
2120 | default y | 2121 | default y |
2121 | help | 2122 | help |
2122 | MIPS SIMD Architecture (MSA) introduces 128 bit wide vector registers | 2123 | MIPS SIMD Architecture (MSA) introduces 128 bit wide vector registers |