aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeniy Naydanov <109669442+en-sc@users.noreply.github.com>2024-07-09 14:27:53 +0300
committerGitHub <noreply@github.com>2024-07-09 14:27:53 +0300
commit57d2553cec305b6b806a00246770262263394a12 (patch)
tree7f46f054173f254d347a869fdacfb07e2a430fdf
parentf5f5f6dd2aeeccc94f0d61a3eaaa07fd8c379473 (diff)
parent6ea577d3f52f929c0083ef34f4ecd0b804d9f7ca (diff)
downloadriscv-openocd-57d2553cec305b6b806a00246770262263394a12.zip
riscv-openocd-57d2553cec305b6b806a00246770262263394a12.tar.gz
riscv-openocd-57d2553cec305b6b806a00246770262263394a12.tar.bz2
Merge pull request #1093 from en-sc/en-sc/v-ext-csrs
target/riscv: vector CSRs are optional
-rw-r--r--src/target/riscv/riscv_reg.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/target/riscv/riscv_reg.c b/src/target/riscv/riscv_reg.c
index f8e5dfe..6cf67dd 100644
--- a/src/target/riscv/riscv_reg.c
+++ b/src/target/riscv/riscv_reg.c
@@ -397,6 +397,14 @@ static bool gdb_regno_exist(const struct target *target, uint32_t regno)
case CSR_FRM:
case CSR_FCSR:
return riscv_supports_extension(target, 'F');
+ case CSR_VSTART:
+ case CSR_VXSAT:
+ case CSR_VXRM:
+ case CSR_VL:
+ case CSR_VCSR:
+ case CSR_VTYPE:
+ case CSR_VLENB:
+ return vlenb_exists(target);
case CSR_SCOUNTEREN:
case CSR_SSTATUS:
case CSR_STVEC: