From 58abb54da5bf322ef17453635f7bee6db1dd512e Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Tue, 2 May 2023 15:35:01 +0000 Subject: [RV64_DYNAREC] Added undocumented BOX64_DYNAREC_RV64NOEXT to disable all RV64 CPU extensions --- src/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.c b/src/main.c index 27bfa9c0..df4bc65f 100755 --- a/src/main.c +++ b/src/main.c @@ -361,7 +361,8 @@ HWCAP2_ECV printf_log(LOG_INFO, " PageSize:%zd ", box64_pagesize); #elif defined(RV64) void RV64_Detect_Function(); - RV64_Detect_Function(); + if(!getenv("BOX64_DYNAREC_RV64NOEXT")) + RV64_Detect_Function(); printf_log(LOG_INFO, "Dynarec for RISC-V "); printf_log(LOG_INFO, "With extension: I M A F D C"); if(rv64_zba) printf_log(LOG_INFO, " Zba"); -- cgit 1.4.1