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.h | |
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.h')
-rw-r--r-- | riscv/csrs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/csrs.h b/riscv/csrs.h index f152802..f08262b 100644 --- a/riscv/csrs.h +++ b/riscv/csrs.h @@ -759,7 +759,7 @@ class sstateen_csr_t: public hstateen_csr_t { virtual bool unlogged_write(const reg_t val) noexcept override; }; -class senvcfg_csr_t final: public masked_csr_t { +class senvcfg_csr_t final: public envcfg_csr_t { public: senvcfg_csr_t(processor_t* const proc, const reg_t addr, const reg_t mask, const reg_t init); virtual void verify_permissions(insn_t insn, bool write) const override; |