about summary refs log tree commit diff stats
path: root/src/tools/env.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/env.c')
-rw-r--r--src/tools/env.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/env.c b/src/tools/env.c
index 00e116f3..7c0319a9 100644
--- a/src/tools/env.c
+++ b/src/tools/env.c
@@ -165,7 +165,8 @@ static void applyCustomRules()
     if (box64env.dynarec_test) {
         SET_BOX64ENV(dynarec_fastnan, 0);
         SET_BOX64ENV(dynarec_fastround, 0);
-        SET_BOX64ENV(dynarec_x87double, 1);
+        if (BOX64ENV(dynarec_x87double) == 0)
+            SET_BOX64ENV(dynarec_x87double, 1);
         SET_BOX64ENV(dynarec_div0, 1);
         SET_BOX64ENV(dynarec_callret, 0);
 #if defined(RV64) || defined(LA64)