Merge pull request #824 from riscv/aia

target/riscv: AIA regs, check for H not V
This commit is contained in:
Tim Newsome 2023-03-29 13:52:34 -07:00 committed by GitHub
commit 38cf11abab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -5509,11 +5509,11 @@ int riscv_init_registers(struct target *target)
case CSR_VSIREG: case CSR_VSIREG:
case CSR_VSTOPI: case CSR_VSTOPI:
r->exist = info->mtopi_readable && r->exist = info->mtopi_readable &&
riscv_supports_extension(target, 'V'); riscv_supports_extension(target, 'H');
break; break;
case CSR_VSTOPEI: case CSR_VSTOPEI:
r->exist = info->mtopei_readable && r->exist = info->mtopei_readable &&
riscv_supports_extension(target, 'V'); riscv_supports_extension(target, 'H');
break; break;
case CSR_HIDELEGH: case CSR_HIDELEGH:
case CSR_HVIENH: case CSR_HVIENH:
@ -5524,7 +5524,7 @@ int riscv_init_registers(struct target *target)
case CSR_VSIPH: case CSR_VSIPH:
r->exist = info->mtopi_readable && r->exist = info->mtopi_readable &&
riscv_xlen(target) == 32 && riscv_xlen(target) == 32 &&
riscv_supports_extension(target, 'V'); riscv_supports_extension(target, 'H');
break; break;
} }