[PATCH 12/13] MIPS: don't build MSA support unless it can be used

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 arch/mips/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 4e238e6..857a49c 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -2112,6 +2112,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.0.1



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux