about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-02-03 17:59:11 +0100
committerptitSeb <sebastien.chev@gmail.com>2024-02-03 17:59:18 +0100
commitf18f5c9b85feecb3b5d1744b2cfaf5a2fe6068b5 (patch)
tree87782f7d2449e5fb6df1242f98f94eb7ab444b0d
parentd5808f6be310d816b18f4f52dd8c4961698a3bf0 (diff)
downloadbox64-f18f5c9b85feecb3b5d1744b2cfaf5a2fe6068b5.tar.gz
box64-f18f5c9b85feecb3b5d1744b2cfaf5a2fe6068b5.zip
[DYNAREC_TEST] Force enabled x87double when using DYNAREC_TEST to limit false positive
-rw-r--r--src/main.c1
-rw-r--r--src/tools/rcfile.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 1e26cce6..ed3a1525 100644
--- a/src/main.c
+++ b/src/main.c
@@ -735,6 +735,7 @@ void LoadLogEnv()
         if(box64_dynarec_test) {
             box64_dynarec_fastnan = 0;
             box64_dynarec_fastround = 0;
+            box64_dynarec_x87double = 1;
             box64_dynarec_callret = 0;
             printf_log(LOG_INFO, "Dynarec will compare it's execution with the interpreter (super slow, only for testing)\n");
         }
diff --git a/src/tools/rcfile.c b/src/tools/rcfile.c
index 8a74c0d0..1bd0da27 100644
--- a/src/tools/rcfile.c
+++ b/src/tools/rcfile.c
@@ -630,6 +630,7 @@ void ApplyParams(const char* name)
     if(param->is_box64_dynarec_test_present && box64_dynarec_test) {
         box64_dynarec_fastnan = 0;
         box64_dynarec_fastround = 0;
+        box64_dynarec_x87double = 1;
         box64_dynarec_callret = 0;
     }
     #endif