Skip to content

Commit 2a6cb66

Browse files
paulburtonralfbaechle
authored andcommitted
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>
1 parent 7daef8f commit 2a6cb66

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎arch/mips/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2117,6 +2117,7 @@ config CPU_MICROMIPS
21172117
config CPU_HAS_MSA
21182118
bool "Support for the MIPS SIMD Architecture"
21192119
depends on CPU_SUPPORTS_MSA
2120+
depends on 64BIT || MIPS_O32_FP64_SUPPORT
21202121
default y
21212122
help
21222123
MIPS SIMD Architecture (MSA) introduces 128 bit wide vector registers

0 commit comments

Comments
 (0)