Skip to content

Commit cbeded9

Browse files
committed
Allow software check exception to be delegated from M mode regardless of Zicfilp being enabled
1 parent 2e86ec4 commit cbeded9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

riscv/csrs.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ bool medeleg_csr_t::unlogged_write(const reg_t val) noexcept {
906906
| (1 << CAUSE_LOAD_PAGE_FAULT)
907907
| (1 << CAUSE_STORE_PAGE_FAULT)
908908
| (proc->extension_enabled('H') ? hypervisor_exceptions : 0)
909-
| (proc->extension_enabled(EXT_ZICFILP) ? (1 << CAUSE_SOFTWARE_CHECK_FAULT) : 0)
909+
| (1 << CAUSE_SOFTWARE_CHECK_FAULT)
910910
;
911911
return basic_csr_t::unlogged_write((read() & ~mask) | (val & mask));
912912
}

0 commit comments

Comments
 (0)