diff options
author | YenHaoChen <howard25336284@gmail.com> | 2023-07-17 12:14:14 +0800 |
---|---|---|
committer | YenHaoChen <howard25336284@gmail.com> | 2023-07-25 08:41:17 +0800 |
commit | 7f22022e1ad4019afb18e48ceb76ec9e6f483b50 (patch) | |
tree | 6c94acc7c2ed1b0e52dcc8a86a19cb8f2e0bdf76 /riscv/csrs.cc | |
parent | f6e7338b26f1508bdcc823ff1920427bf72e95ae (diff) | |
download | riscv-isa-sim-7f22022e1ad4019afb18e48ceb76ec9e6f483b50.zip riscv-isa-sim-7f22022e1ad4019afb18e48ceb76ec9e6f483b50.tar.gz riscv-isa-sim-7f22022e1ad4019afb18e48ceb76ec9e6f483b50.tar.bz2 |
legalize senvcfg.CBIE
The value 2 of senvcfg.CBIE is reserved. This commit legalizes it to 0.
Reference: https://github.com/riscv/riscv-CMOs/issues/65
Diffstat (limited to 'riscv/csrs.cc')
-rw-r--r-- | riscv/csrs.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/csrs.cc b/riscv/csrs.cc index a895b6c..65f5594 100644 --- a/riscv/csrs.cc +++ b/riscv/csrs.cc @@ -1476,7 +1476,7 @@ void sstateen_csr_t::verify_permissions(insn_t insn, bool write) const { // implement class senvcfg_csr_t senvcfg_csr_t::senvcfg_csr_t(processor_t* const proc, const reg_t addr, const reg_t mask, const reg_t init): - masked_csr_t(proc, addr, mask, init) { + envcfg_csr_t(proc, addr, mask, init) { } void senvcfg_csr_t::verify_permissions(insn_t insn, bool write) const { |