about summary refs log tree commit diff stats
path: root/src/main.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2023-10-18 17:18:50 +0200
committerptitSeb <sebastien.chev@gmail.com>2023-10-18 17:18:50 +0200
commit0481589615582cfd7ef737ac90ccb9a9a19f3d41 (patch)
tree3f9f25db6e8cd7d1ed1c228117fd0e3eb3fc6a9b /src/main.c
parent6ef2b22a3ce4aaf5df5069dab226c1eeab806b19 (diff)
downloadbox64-0481589615582cfd7ef737ac90ccb9a9a19f3d41.tar.gz
box64-0481589615582cfd7ef737ac90ccb9a9a19f3d41.zip
[ARM64_DYNAREC] More changes to Strong memory model emulation
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index cdbff19c..8fde0052 100644
--- a/src/main.c
+++ b/src/main.c
@@ -63,6 +63,7 @@ int box64_dynarec_hotpage = 0;
 int box64_dynarec_fastpage = 0;
 int box64_dynarec_bleeding_edge = 1;
 int box64_dynarec_jvm = 1;
+int box64_dynarec_tbb = 1;
 int box64_dynarec_wait = 1;
 int box64_dynarec_test = 0;
 int box64_dynarec_missing = 0;
@@ -537,11 +538,11 @@ void LoadLogEnv()
     p = getenv("BOX64_DYNAREC_STRONGMEM");
     if(p) {
         if(strlen(p)==1) {
-            if(p[0]>='0' && p[0]<='2')
+            if(p[0]>='0' && p[0]<='3')
                 box64_dynarec_strongmem = p[0]-'0';
         }
         if(box64_dynarec_strongmem)
-            printf_log(LOG_INFO, "Dynarec will try to emulate a strong memory model%s\n", (box64_dynarec_strongmem==1)?" with limited performance loss":"");
+            printf_log(LOG_INFO, "Dynarec will try to emulate a strong memory model%s\n", (box64_dynarec_strongmem==1)?" with limited performance loss":((box64_dynarec_strongmem==3)?" with more performance loss":""));
     }
     p = getenv("BOX64_DYNAREC_X87DOUBLE");
     if(p) {
@@ -608,6 +609,15 @@ void LoadLogEnv()
         if(!box64_dynarec_jvm)
             printf_log(LOG_INFO, "Dynarec will not detect libjvm\n");
     }
+    p = getenv("BOX64_DYNAREC_TBB");
+    if(p) {
+        if(strlen(p)==1) {
+            if(p[0]>='0' && p[0]<='1')
+                box64_dynarec_tbb = p[0]-'0';
+        }
+        if(!box64_dynarec_tbb)
+            printf_log(LOG_INFO, "Dynarec will not detect libtbb\n");
+    }
     p = getenv("BOX64_DYNAREC_WAIT");
     if(p) {
         if(strlen(p)==1) {