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-20 21:30:22 +0100
committerptitSeb <sebastien.chev@gmail.com>2023-02-20 21:30:22 +0100
commitbfef8c9bbe8a16373742cb9c9e5691b93e994f58 (patch)
tree246b21e67025f3159006efd04f78fc6e4ec696bf /src/main.c
parent42b83789880c300711f08e3852784e17cafaf7ac (diff)
parent3fe2843bb3b95d8edd63d21c4f6acad7f652be91 (diff)
downloadbox64-bfef8c9bbe8a16373742cb9c9e5691b93e994f58.tar.gz
box64-bfef8c9bbe8a16373742cb9c9e5691b93e994f58.zip
Merge branch 'main' into steam_chrome
Diffstat (limited to 'src/main.c')
-rwxr-xr-xsrc/main.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index ea809e54..e6c29568 100755
--- a/src/main.c
+++ b/src/main.c
@@ -57,7 +57,8 @@ int box64_dynarec_fastnan = 1;
 int box64_dynarec_fastround = 1;
 int box64_dynarec_safeflags = 1;
 int box64_dynarec_callret = 0;
-int box64_dynarec_hotpage = 16;
+int box64_dynarec_hotpage = 4;
+int box64_dynarec_fastpage = 0;
 int box64_dynarec_bleeding_edge = 1;
 int box64_dynarec_wait = 1;
 uintptr_t box64_nodynarec_start = 0;
@@ -564,6 +565,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,'-')) {