medeleg
Machine Exception Delegation
Controls exception delegation from M-mode to (H)S-mode .
An exception cause is delegated to (H)S-mode when all of the following hold:
-
The corresponding field in medeleg is set.
-
The current privilege level is not M-mode.
Otherwise, an exception cause is handled by M-mode.
See interrupt documentation for more details.
Field Summary
Name | Location | Type | Reset Value |
---|---|---|---|
0 |
RW |
UNDEFINED_LEGAL |
|
1 |
RW |
UNDEFINED_LEGAL |
|
2 |
RW |
UNDEFINED_LEGAL |
|
3 |
RW |
UNDEFINED_LEGAL |
|
4 |
RW |
UNDEFINED_LEGAL |
|
5 |
RW |
UNDEFINED_LEGAL |
|
6 |
RW |
UNDEFINED_LEGAL |
|
7 |
RW |
UNDEFINED_LEGAL |
|
8 |
RW |
UNDEFINED_LEGAL |
|
9 |
RW |
UNDEFINED_LEGAL |
|
10 |
RW |
UNDEFINED_LEGAL |
|
11 |
RO |
0 |
|
12 |
RW |
UNDEFINED_LEGAL |
|
13 |
RW |
UNDEFINED_LEGAL |
|
15 |
RW |
UNDEFINED_LEGAL |
|
20 |
RW |
UNDEFINED_LEGAL |
|
21 |
RW |
UNDEFINED_LEGAL |
|
22 |
RW |
UNDEFINED_LEGAL |
|
23 |
RW |
UNDEFINED_LEGAL |