From 6cbcfc7ab80269a0d3b80ec920fa344f59609b61 Mon Sep 17 00:00:00 2001 From: Yang Liu Date: Thu, 3 Oct 2024 02:44:04 +0800 Subject: [DYNAREC] Added a new missing mode for fallback opcodes (#1896) --- src/core.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/core.c') diff --git a/src/core.c b/src/core.c index 31cb413d..05f516d9 100644 --- a/src/core.c +++ b/src/core.c @@ -842,11 +842,13 @@ void LoadLogEnv() p = getenv("BOX64_DYNAREC_MISSING"); if(p) { if(strlen(p)==1) { - if(p[0]>='0' && p[0]<='1') + if(p[0]>='0' && p[0]<='2') box64_dynarec_missing = p[0]-'0'; } - if(box64_dynarec_missing) + if(box64_dynarec_missing==1) printf_log(LOG_INFO, "Dynarec will print missing opcodes\n"); + else if (box64_dynarec_missing==2) + printf_log(LOG_INFO, "Dynarec will print fallback to scalar opcodes\n"); } p = getenv("BOX64_NODYNAREC"); if(p) { -- cgit 1.4.1