about summary refs log tree commit diff stats
path: root/src/rv64detect.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rv64detect.c')
-rw-r--r--src/rv64detect.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rv64detect.c b/src/rv64detect.c
index 698200cc..27ea2e51 100644
--- a/src/rv64detect.c
+++ b/src/rv64detect.c
@@ -69,9 +69,10 @@ void RV64_Detect_Function()
     rv64_zbs = Check(my_block);
 
     // Test Vector v1.0 with CSRR zero, vcsr
+    block = (uint32_t*)my_block;
     CSRRS(xZR, xZR, 0x00f);
     BR(xRA);
-    rv64_vector = Check(my_block);
+    rv64_vector = Check(my_block); // TODO: also check vlen >= 128
 
     // THead vendor extensions
     if (!rv64_zba) {