File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change 9
9
10
10
#define SET_SCAUSE_AND_STVAL_THEN_TRAP (rv , scause , stval ) \
11
11
{ \
12
- /*
13
- * To align rv32emu behavior with Spike
14
- *
15
- * If not in system mode, the __trap_handler
16
- * should be be invoked
17
- */ \
12
+ /* \
13
+ * To align rv32emu behavior with Spike \
14
+ * \
15
+ * If not in system mode, the __trap_handler \
16
+ * should be be invoked \
17
+ */ \
18
18
IIF (RV32_HAS (SYSTEM ))(rv -> is_trapped = true, ); \
19
19
rv -> csr_scause = scause ; \
20
20
rv -> csr_stval = stval ; \
21
21
rv -> io .on_trap (rv ); \
22
22
}
23
23
24
24
enum TRAP_CODE {
25
- INSN_MISALIGNED = 0 ,
26
- ILLEGAL_INSN = 2 ,
27
- BREAKPOINT = 3 ,
28
- LOAD_MISALIGNED = 4 ,
29
- STORE_MISALIGNED = 6 ,
30
- PAGEFAULT_INSN = 12 ,
31
- PAGEFAULT_LOAD = 13 ,
32
- PAGEFAULT_STORE = 15 ,
33
- ECALL_M = 11 ,
25
+ INSN_MISALIGNED = 0 ,
26
+ ILLEGAL_INSN = 2 ,
27
+ BREAKPOINT = 3 ,
28
+ LOAD_MISALIGNED = 4 ,
29
+ STORE_MISALIGNED = 6 ,
30
+ PAGEFAULT_INSN = 12 ,
31
+ PAGEFAULT_LOAD = 13 ,
32
+ PAGEFAULT_STORE = 15 ,
33
+ ECALL_M = 11 ,
34
34
};
35
35
36
36
/* PTE XWRV bit in order */
You can’t perform that action at this time.
0 commit comments