From 29beabd6831dd51a1dd0a0cbf6c241a2ba45b612 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sun, 20 Oct 2024 13:21:08 +0200 Subject: [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) --- src/core.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/core.c') 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) { -- cgit 1.4.1