about summary refs log tree commit diff stats
path: root/src/core.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-08-19 14:36:26 +0200
committerGitHub <noreply@github.com>2024-08-19 14:36:26 +0200
commit66da28a02f83a05942abd11cfb80fa8e63408b15 (patch)
tree00743a331f3af346319c141c18c64d761ef3c847 /src/core.c
parent2daef545dd39ac68021447351275113ceaf92018 (diff)
parent15f6bbebe10ff77c9fea07245493b1fdf5b709cc (diff)
downloadbox64-66da28a02f83a05942abd11cfb80fa8e63408b15.tar.gz
box64-66da28a02f83a05942abd11cfb80fa8e63408b15.zip
Merge pull request #1746 from ksco/disable_vector
[RV64_DYNAREC] Disable vector extension by default until it's ready
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core.c b/src/core.c
index 3283a6c2..5e345568 100644
--- a/src/core.c
+++ b/src/core.c
@@ -512,7 +512,13 @@ HWCAP2_AFP
     if(rv64_zbb) printf_log(LOG_INFO, " Zbb");
     if(rv64_zbc) printf_log(LOG_INFO, " Zbc");
     if(rv64_zbs) printf_log(LOG_INFO, " Zbs");
-    if(rv64_vector) printf_log(LOG_INFO, " Vector (vlen: %d)", rv64_vlen);
+    if (rv64_vector) {
+        char* p = getenv("BOX64_DYNAREC_RV64VEXT");
+        if (p != NULL && p[0] == '1')
+            printf_log(LOG_INFO, " Vector (vlen: %d)", rv64_vlen);
+        else
+            rv64_vector = 0;
+    }
     if(rv64_xtheadba) printf_log(LOG_INFO, " XTheadBa");
     if(rv64_xtheadbb) printf_log(LOG_INFO, " XTheadBb");
     if(rv64_xtheadbs) printf_log(LOG_INFO, " XTheadBs");