aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/target/riscv/riscv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c
index 167d17f..7d2f976 100644
--- a/src/target/riscv/riscv.c
+++ b/src/target/riscv/riscv.c
@@ -5509,11 +5509,11 @@ int riscv_init_registers(struct target *target)
case CSR_VSIREG:
case CSR_VSTOPI:
r->exist = info->mtopi_readable &&
- riscv_supports_extension(target, 'V');
+ riscv_supports_extension(target, 'H');
break;
case CSR_VSTOPEI:
r->exist = info->mtopei_readable &&
- riscv_supports_extension(target, 'V');
+ riscv_supports_extension(target, 'H');
break;
case CSR_HIDELEGH:
case CSR_HVIENH:
@@ -5524,7 +5524,7 @@ int riscv_init_registers(struct target *target)
case CSR_VSIPH:
r->exist = info->mtopi_readable &&
riscv_xlen(target) == 32 &&
- riscv_supports_extension(target, 'V');
+ riscv_supports_extension(target, 'H');
break;
}