about summary refs log tree commit diff stats
path: root/src/main.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2023-02-16 16:14:37 +0100
committerptitSeb <sebastien.chev@gmail.com>2023-02-16 16:14:37 +0100
commit6f3d636226f2aef19362655e841236dc97bb1116 (patch)
treec030fbe9cda962fbef6d9f85ad686690ba3715a5 /src/main.c
parentf03792619a6137f7d72e370a9118061cae16bf10 (diff)
downloadbox64-6f3d636226f2aef19362655e841236dc97bb1116.tar.gz
box64-6f3d636226f2aef19362655e841236dc97bb1116.zip
[DYNAREC] Added BOX64_DYNAREC_WAIT env. var. (Default to 1)
Diffstat (limited to 'src/main.c')
-rwxr-xr-xsrc/main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 863f40a3..6df6c8b1 100755
--- a/src/main.c
+++ b/src/main.c
@@ -58,6 +58,7 @@ int box64_dynarec_safeflags = 1;
 int box64_dynarec_callret = 0;
 int box64_dynarec_hotpage = 16;
 int box64_dynarec_bleeding_edge = 1;
+int box64_dynarec_wait = 1;
 uintptr_t box64_nodynarec_start = 0;
 uintptr_t box64_nodynarec_end = 0;
 #ifdef ARM64
@@ -540,6 +541,15 @@ void LoadLogEnv()
         if(!box64_dynarec_bleeding_edge)
             printf_log(LOG_INFO, "Dynarec will not detect MonoBleedingEdge\n");
     }
+    p = getenv("BOX64_DYNAREC_WAIT");
+    if(p) {
+        if(strlen(p)==1) {
+            if(p[0]>='0' && p[0]<='1')
+                box64_dynarec_wait = p[0]-'0';
+        }
+        if(!box64_dynarec_wait)
+            printf_log(LOG_INFO, "Dynarec will not wait for FillBlock to ready and use Interpreter instead\n");
+    }
     p = getenv("BOX64_DYNAREC_HOTPAGE");
     if(p) {
         int val = -1;