We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb6586e commit 4adab49Copy full SHA for 4adab49
riscv/csrs.cc
@@ -996,7 +996,7 @@ void medeleg_csr_t::verify_permissions(insn_t insn, bool write) const {
996
997
bool medeleg_csr_t::unlogged_write(const reg_t val) noexcept {
998
const reg_t mask = 0
999
- | (1 << CAUSE_MISALIGNED_FETCH)
+ | (proc->extension_enabled(EXT_ZCA) ? 0 : 1 << CAUSE_MISALIGNED_FETCH)
1000
| (1 << CAUSE_FETCH_ACCESS)
1001
| (1 << CAUSE_ILLEGAL_INSTRUCTION)
1002
| (1 << CAUSE_BREAKPOINT)
0 commit comments