Index: src/mips/constants-mips.h |
diff --git a/src/mips/constants-mips.h b/src/mips/constants-mips.h |
index eb0d22c2198d1bc6c2629d67e71fbecbd5052cba..25673301331a312c03a9d7de9134efc23e40b944 100644 |
--- a/src/mips/constants-mips.h |
+++ b/src/mips/constants-mips.h |
@@ -47,6 +47,19 @@ |
#endif |
+#if(defined(__mips_hard_float) && __mips_hard_float != 0) |
+// Use floating-point coprocessor instructions. This flag is raised when |
+// -mhard-float is passed to the compiler. |
+static const bool IsMipsSoftFloatABI = false; |
+#elif(defined(__mips_soft_float) && __mips_soft_float != 0) |
+// Not using floating-point coprocessor instructions. This flag is raised when |
+// -msoft-float is passed to the compiler. |
+static const bool IsMipsSoftFloatABI = true; |
+#else |
+static const bool IsMipsSoftFloatABI = true; |
+#endif |
+ |
+ |
// Defines constants and accessor classes to assemble, disassemble and |
// simulate MIPS32 instructions. |
// |