From 5bde45cc8695e85de56dc11ecc391bfb2b74bb38 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Tue, 3 Dec 2024 11:25:10 +0100 Subject: [DYNAREC] Made weakbarrier=1 and pause=3 default --- src/core.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/core.c b/src/core.c index 007f578a..916d90c9 100644 --- a/src/core.c +++ b/src/core.c @@ -79,8 +79,8 @@ int box64_dynarec_forced = 0; int box64_dynarec_bigblock = 1; int box64_dynarec_forward = 128; int box64_dynarec_strongmem = 0; -int box64_dynarec_weakbarrier = 0; -int box64_dynarec_pause = 0; +int box64_dynarec_weakbarrier = 1; +int box64_dynarec_pause = 3; int box64_dynarec_x87double = 0; int box64_dynarec_div0 = 0; int box64_dynarec_fastnan = 1; @@ -787,6 +787,8 @@ void LoadLogEnv() } if (box64_dynarec_weakbarrier) printf_log(LOG_INFO, "Dynarec will try to use weaker memory barriers to reduce the performance loss introduce by strong memory emulation\n"); + else + printf_log(LOG_INFO, "Dynarec will not use weakbarrier on strong memory emulation\n"); } #ifdef ARM64 p = getenv("BOX64_DYNAREC_PAUSE"); @@ -798,6 +800,8 @@ void LoadLogEnv() if (box64_dynarec_pause) printf_log(LOG_INFO, "Dynarec will use %s to emulate pause instruction\n", box64_dynarec_pause == 1 ? "yield" : (box64_dynarec_pause == 2 ? "wfi" : "wfe")); + else + printf_log(LOG_INFO, "Dynarec will generate nothing for the pause instuction\n"); } #endif p = getenv("BOX64_DYNAREC_X87DOUBLE"); -- cgit 1.4.1