mstatus.MIE
field is copied into
mstatus.MPIE
, then mstatus.MIE
is cleared,
effectively disabling interrupts.mepc
register, and then PC is set to the value of mtvec
. If vectored
interrupts are enabled, PC is set to
mtvec.BASE
+ 4 × exception
code.mstatus.MPP
.mstatus.MIE
, or by executing the MRET
instruction to
exit the handler. When the MRET
instruction is executed:mstatus.MPP
.mstatus.MPIE
is copied to
mstatus.MIE
.mepc
.The Interrupt CSRs are described in the following sections. This document only describes the implementation of interrupt CSRs specific to CPU Core Complex. For a complete description of RISC-V interrupt behavior and how to access CSRs, see The RISC-V Instruction Set Manual, Volume II: Privileged Architecture, Version 1.10.