We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents efdaa08 + 4c10fbe commit b92958aCopy full SHA for b92958a
riscv/csrs.cc
@@ -556,7 +556,8 @@ bool mstatus_csr_t::unlogged_write(const reg_t val) noexcept {
556
const reg_t mask = adj_write_mask
557
| MSTATUS_MIE | MSTATUS_MPIE
558
| (proc->extension_enabled('U') ? MSTATUS_MPRV : 0)
559
- | MSTATUS_MPP | MSTATUS_TW
+ | MSTATUS_MPP
560
+ | (proc->extension_enabled('U') ? MSTATUS_TW : 0)
561
| (proc->extension_enabled('S') ? MSTATUS_TSR : 0)
562
| (has_page ? MSTATUS_TVM : 0)
563
| (has_gva ? MSTATUS_GVA : 0)
0 commit comments