about summary refs log tree commit diff stats
path: root/src/rv64detect.c
diff options
context:
space:
mode:
authorYang Liu <liuyang22@iscas.ac.cn>2024-06-27 14:43:49 +0800
committerGitHub <noreply@github.com>2024-06-27 08:43:49 +0200
commit52c97c47ab397a37c8fc23c5cb20ad687b2fe11f (patch)
tree79fdf92b0b344c6d26257d02a7916cf684d6b6ee /src/rv64detect.c
parent5f06d066e7d768ffb7d14a989b282822b76e4b8b (diff)
downloadbox64-52c97c47ab397a37c8fc23c5cb20ad687b2fe11f.tar.gz
box64-52c97c47ab397a37c8fc23c5cb20ad687b2fe11f.zip
[RV64_DYNAREC] Detect vector extension (#1619)
Diffstat (limited to 'src/rv64detect.c')
-rw-r--r--src/rv64detect.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rv64detect.c b/src/rv64detect.c
index 9c7a37cf..698200cc 100644
--- a/src/rv64detect.c
+++ b/src/rv64detect.c
@@ -68,6 +68,11 @@ void RV64_Detect_Function()
     BR(xRA);
     rv64_zbs = Check(my_block);
 
+    // Test Vector v1.0 with CSRR zero, vcsr
+    CSRRS(xZR, xZR, 0x00f);
+    BR(xRA);
+    rv64_vector = Check(my_block);
+
     // THead vendor extensions
     if (!rv64_zba) {
         // Test XTheadBa with TH_ADDSL