Index: src/flag-definitions.h |
diff --git a/src/flag-definitions.h b/src/flag-definitions.h |
index e6f8ab4e6d397d07417f6abc444612bb37637de5..9c9362b2f003d5e648b8186813d8fe85da300b70 100644 |
--- a/src/flag-definitions.h |
+++ b/src/flag-definitions.h |
@@ -119,6 +119,22 @@ public: |
}; |
#endif |
+#if (defined CAN_USE_VFP3_INSTRUCTIONS) || !(defined ARM_TEST) |
+# define ENABLE_VFP3_DEFAULT true |
+#else |
+# define ENABLE_VFP3_DEFAULT false |
+#endif |
+#if (defined CAN_USE_ARMV7_INSTRUCTIONS) || !(defined ARM_TEST) |
+# define ENABLE_ARMV7_DEFAULT true |
+#else |
+# define ENABLE_ARMV7_DEFAULT false |
+#endif |
+#if (defined CAN_USE_VFP32DREGS) || !(defined ARM_TEST) |
+# define ENABLE_32DREGS_DEFAULT true |
+#else |
+# define ENABLE_32DREGS_DEFAULT false |
+#endif |
+ |
#define DEFINE_bool(nam, def, cmt) FLAG(BOOL, bool, nam, def, cmt) |
#define DEFINE_int(nam, def, cmt) FLAG(INT, int, nam, def, cmt) |
#define DEFINE_float(nam, def, cmt) FLAG(FLOAT, double, nam, def, cmt) |
@@ -308,9 +324,9 @@ DEFINE_bool(enable_rdtsc, true, |
"enable use of RDTSC instruction if available") |
DEFINE_bool(enable_sahf, true, |
"enable use of SAHF instruction if available (X64 only)") |
-DEFINE_bool(enable_vfp3, true, |
+DEFINE_bool(enable_vfp3, ENABLE_VFP3_DEFAULT, |
"enable use of VFP3 instructions if available") |
-DEFINE_bool(enable_armv7, true, |
+DEFINE_bool(enable_armv7, ENABLE_ARMV7_DEFAULT, |
"enable use of ARMv7 instructions if available (ARM only)") |
DEFINE_bool(enable_sudiv, true, |
"enable use of SDIV and UDIV instructions if available (ARM only)") |
@@ -319,7 +335,7 @@ DEFINE_bool(enable_movw_movt, false, |
"instruction pairs (ARM only)") |
DEFINE_bool(enable_unaligned_accesses, true, |
"enable unaligned accesses for ARMv7 (ARM only)") |
-DEFINE_bool(enable_32dregs, true, |
+DEFINE_bool(enable_32dregs, ENABLE_32DREGS_DEFAULT, |
"enable use of d16-d31 registers on ARM - this requires VFP3") |
DEFINE_bool(enable_vldr_imm, false, |
"enable use of constant pools for double immediate (ARM only)") |