diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-10-20 13:21:08 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-10-20 13:21:08 +0200 |
| commit | 29beabd6831dd51a1dd0a0cbf6c241a2ba45b612 (patch) | |
| tree | d2d2179fb61de42ba583b1893d4821fa95a32aa4 /src/core.c | |
| parent | 80c346060f66f4dba261fae348bd9cf4cc4578d7 (diff) | |
| download | box64-29beabd6831dd51a1dd0a0cbf6c241a2ba45b612.tar.gz box64-29beabd6831dd51a1dd0a0cbf6c241a2ba45b612.zip | |
[ARM64_DYNAREC] Added BOX64_DYNAREC_NATIVEFLAGS to disable the use of native flags, as there is still a bug or two in that mode (for #1947)
Diffstat (limited to 'src/core.c')
| -rw-r--r-- | src/core.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c index 157dd204..89f0c78b 100644 --- a/src/core.c +++ b/src/core.c @@ -90,6 +90,7 @@ int box64_dynarec_tbb = 1; int box64_dynarec_wait = 1; int box64_dynarec_missing = 0; int box64_dynarec_aligned_atomics = 0; +int box64_dynarec_nativeflags = 1; uintptr_t box64_nodynarec_start = 0; uintptr_t box64_nodynarec_end = 0; uintptr_t box64_dynarec_test_start = 0; @@ -883,6 +884,15 @@ void LoadLogEnv() if(box64_dynarec_aligned_atomics) printf_log(LOG_INFO, "Dynarec will generate only aligned atomics code\n"); } + p = getenv("BOX64_DYNAREC_NATIVEFLAGS"); + if(p) { + if(strlen(p)==1) { + if(p[0]>='0' && p[0]<='1') + box64_dynarec_nativeflags = p[0]-'0'; + } + if(!box64_dynarec_nativeflags) + printf_log(LOG_INFO, "Dynarec will not use native flags if possible\n"); + } p = getenv("BOX64_DYNAREC_MISSING"); if(p) { if(strlen(p)==1) { |