Machine Exception Delegation Register

Tonight’s @risc_v Tip:

You might assume some exceptions, such as an ecall from User mode (U), are handled in Supervisor mode (S), but all traps are handled in Machine mode (M) by default. However, the medeleg CSR can be used to delegate some traps to a lower privilege level..


Original Tweet