about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorYang Liu <liuyang22@iscas.ac.cn>2024-09-24 17:44:16 +0800
committerGitHub <noreply@github.com>2024-09-24 11:44:16 +0200
commitc4af15c2e210a91a30c974901468650533918d39 (patch)
tree8452ad70f16e41526aa1592afd9022aeff303239 /src
parenteacde4008eeacf0871e35f180d3e7f8c17bb20cd (diff)
downloadbox64-c4af15c2e210a91a30c974901468650533918d39.tar.gz
box64-c4af15c2e210a91a30c974901468650533918d39.zip
[RV64_DYNAREC] Allowed disabling V extension (#1862)
Diffstat (limited to 'src')
-rw-r--r--src/core.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index b89b7f76..7007f63c 100644
--- a/src/core.c
+++ b/src/core.c
@@ -509,9 +509,14 @@ HWCAP2_AFP
     }
 #elif defined(RV64)
     void RV64_Detect_Function();
+    // private env. variable for the developer ;)
     char *p = getenv("BOX64_DYNAREC_RV64NOEXT");
     if(p == NULL || p[0] == '0')
         RV64_Detect_Function();
+    if (p != NULL && !strcasecmp(p, "vector")) {
+        RV64_Detect_Function();
+        rv64_vector = 0;
+    }
     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");