Skip to content

Commit

Permalink
Merge pull request #1093 from en-sc/en-sc/v-ext-csrs
Browse files Browse the repository at this point in the history
target/riscv: vector CSRs are optional
  • Loading branch information
en-sc committed Jul 9, 2024
2 parents f5f5f6d + 6ea577d commit 57d2553
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/target/riscv/riscv_reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 57d2553

Please sign in to comment.