diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2023-05-02 15:35:01 +0000 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2023-05-02 15:35:01 +0000 |
| commit | 58abb54da5bf322ef17453635f7bee6db1dd512e (patch) | |
| tree | 10c7e12385ce030c4774b67a13786bc905d600b2 | |
| parent | 2fb4dccff02becaeb83dd58d51da9053ec3fe256 (diff) | |
| download | box64-58abb54da5bf322ef17453635f7bee6db1dd512e.tar.gz box64-58abb54da5bf322ef17453635f7bee6db1dd512e.zip | |
[RV64_DYNAREC] Added undocumented BOX64_DYNAREC_RV64NOEXT to disable all RV64 CPU extensions
| -rwxr-xr-x | src/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
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"); |