We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7d0dba commit 50c89eaCopy full SHA for 50c89ea
riscv/csrs.cc
@@ -286,7 +286,8 @@ mseccfg_csr_t::mseccfg_csr_t(processor_t* const proc, const reg_t addr):
286
void mseccfg_csr_t::verify_permissions(insn_t insn, bool write) const {
287
basic_csr_t::verify_permissions(insn, write);
288
if (!proc->extension_enabled(EXT_SMEPMP) &&
289
- !proc->extension_enabled(EXT_ZICFILP))
+ !proc->extension_enabled(EXT_ZICFILP) &&
290
+ !proc->extension_enabled(EXT_ZKR))
291
throw trap_illegal_instruction(insn.bits());
292
}
293
0 commit comments