Index: src/mips/constants-mips.h |
diff --git a/src/mips/constants-mips.h b/src/mips/constants-mips.h |
index c453aa120022d882ec6a42edf0d5557bb869a8c2..e7cb67b884ef33f7570105745683fad34fa5bd1d 100644 |
--- a/src/mips/constants-mips.h |
+++ b/src/mips/constants-mips.h |
@@ -64,13 +64,9 @@ |
#elif defined(FPU_MODE_FP64) |
static const FpuMode kFpuMode = kFP64; |
#elif defined(FPU_MODE_FPXX) |
-#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS32R6) |
-static const FpuMode kFpuMode = kFPXX; |
+ static const FpuMode kFpuMode = kFPXX; |
#else |
-#error "FPXX is supported only on Mips32R2 and Mips32R6" |
-#endif |
-#else |
-static const FpuMode kFpuMode = kFP32; |
+ static const FpuMode kFpuMode = kFP32; |
#endif |
#if(defined(__mips_hard_float) && __mips_hard_float != 0) |
@@ -96,9 +92,13 @@ |
#error Unknown endianness |
#endif |
-#define IsFp64Mode() (kFpuMode == kFP64) |
-#define IsFp32Mode() (kFpuMode == kFP32) |
-#define IsFpxxMode() (kFpuMode == kFPXX) |
+#ifndef FPU_MODE_FPXX |
+#define IsFp64Mode() \ |
+ (kFpuMode == kFP64) |
+#else |
+#define IsFp64Mode() \ |
+ (CpuFeatures::IsSupported(FP64FPU)) |
+#endif |
#ifndef _MIPS_ARCH_MIPS32RX |
#define IsMipsArchVariant(check) \ |