Interrupts
Code Hex Mask Abbr Description
0 0 000001
1 1 000002 SSI Supervisor software interrupt
2 2 000004 VSSI Virtual supervisor software interrupt
3 3 000008 MSI Machine software interrupt
4 4 000010
5 5 000020 STI Supervisor timer interrupt
6 6 000040 VSTI Virtual supervisor timer interrupt
7 7 000080 MTI Machine timer interrupt
8 8 000100
9 9 000200 SEI Supervisor external interrupt
10 a 000400 VSEI Virtual supervisor external interrupt
11 b 000800 MEI Machine external interrupt
12 c 001000 SGEI Supervisor guest external interrupt
13 d 002000 LCOFI Local counter overflow interrupt
14 e 004000
15 f 008000
0 = 0 0 0 0
1 = 0 0 0 1
2 = 0 0 2 0
3 = 0 0 2 1
4 = 0 4 0 0
5 = 0 4 0 1
6 = 0 4 2 0
7 = 0 4 2 1
8 = 8 0 0 0
9 = 8 0 0 1
a = 8 0 2 0
b = 8 0 2 1
c = 8 4 0 0
d = 8 4 0 1
e = 8 4 2 0
f = 8 4 2 1
Exceptions
Code Hex Mask Description
0 0 000001 Instruction address misaligned
1 1 000002 Instruction access fault
2 2 000004 Illegal instruction
3 3 000008 Breakpoint
4 4 000010 Load address misaligned
5 5 000020 Load access fault
6 6 000040 Store/AMO address misaligned
7 7 000080 Store/AMO access fault
8 8 000100 Environment call from U-mode or VU-mode
9 9 000200 Environment call from HS-mode
10 a 000400 Environment call from VS-mode
11 b 000800 Environment call from M-mode
12 c 001000 Instruction page fault
13 d 002000 Load page fault
14 e 004000
15 f 008000 Store/AMO page fault
16 10 010000
17 11 020000
18 12 040000
19 13 080000
20 14 100000 Instruction guest-page fault
21 15 200000 Load guest-page fault
22 16 400000 Virtual instruction
23 17 800000 Store/AMO guest-page fault