Skip to content

Commit 57d2553

Browse files
authored
Merge pull request riscv-collab#1093 from en-sc/en-sc/v-ext-csrs
target/riscv: vector CSRs are optional
2 parents f5f5f6d + 6ea577d commit 57d2553

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/target/riscv/riscv_reg.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,14 @@ static bool gdb_regno_exist(const struct target *target, uint32_t regno)
397397
case CSR_FRM:
398398
case CSR_FCSR:
399399
return riscv_supports_extension(target, 'F');
400+
case CSR_VSTART:
401+
case CSR_VXSAT:
402+
case CSR_VXRM:
403+
case CSR_VL:
404+
case CSR_VCSR:
405+
case CSR_VTYPE:
406+
case CSR_VLENB:
407+
return vlenb_exists(target);
400408
case CSR_SCOUNTEREN:
401409
case CSR_SSTATUS:
402410
case CSR_STVEC:

0 commit comments

Comments
 (0)