target/riscv: AIA regs, check for H not V
Change-Id: Iac37b79dc737fd64a21dce83b3ef36f1a8aae118 Signed-off-by: Tim Newsome <tim@sifive.com>
This commit is contained in:
parent
a01bd76e5c
commit
194a90186c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue