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-19 23:54:00 +0100
committerptitSeb <sebastien.chev@gmail.com>2023-02-19 23:54:00 +0100
commitd06ff478d188eb4a077041e4b2b628f75ed9eaf8 (patch)
treeafeb72b0d96281ae9f53497e86baf98fac718da9 /src/main.c
parent83db04cdce694727c9b3bbb680b54feaae51d98a (diff)
downloadbox64-d06ff478d188eb4a077041e4b2b628f75ed9eaf8.tar.gz
box64-d06ff478d188eb4a077041e4b2b628f75ed9eaf8.zip
[DYNAREC] Introduced BOX64_DYNAREC_FASTPAGE to use an alternate way to handle HotPages (faster but crashy)
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 b8ee9f4b..55a18473 100755
--- a/src/main.c
+++ b/src/main.c
@@ -57,6 +57,7 @@ int box64_dynarec_fastround = 1;
 int box64_dynarec_safeflags = 1;
 int box64_dynarec_callret = 0;
 int box64_dynarec_hotpage = 16;
+int box64_dynarec_fastpage = 0;
 int box64_dynarec_bleeding_edge = 1;
 int box64_dynarec_wait = 1;
 uintptr_t box64_nodynarec_start = 0;
@@ -563,6 +564,15 @@ void LoadLogEnv()
         else
             printf_log(LOG_INFO, "Dynarec will not tag HotPage\n");
     }
+    p = getenv("BOX64_DYNAREC_FASTPAGE");
+    if(p) {
+        if(strlen(p)==1) {
+            if(p[0]>='0' && p[0]<='1')
+                box64_dynarec_fastpage = p[0]-'0';
+        }
+        if(box64_dynarec_fastpage)
+            printf_log(LOG_INFO, "Dynarec will use Fast HotPage\n");
+    }
     p = getenv("BOX64_NODYNAREC");
     if(p) {
         if (strchr(p,'-')) {