File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,6 @@ RV_TRAP_LIST
176
176
rv->compressed = compress; \
177
177
rv->csr_cycle = cycle; \
178
178
rv->PC = PC; \
179
- IIF(RV32_HAS(SYSTEM))(rv->is_trapped = true, ); \
180
179
SET_SCAUSE_AND_STVAL_THEN_TRAP(rv, type##_MISALIGNED, \
181
180
IIF(IO)(addr, mask_or_pc)); \
182
181
return false; \
@@ -1118,6 +1117,7 @@ void rv_step(void *arg)
1118
1117
#endif
1119
1118
}
1120
1119
1120
+ #if RV32_HAS (SYSTEM )
1121
1121
static void __trap_handler (riscv_t * rv )
1122
1122
{
1123
1123
rv_insn_t * ir = mpool_alloc (rv -> block_ir_mp );
@@ -1134,6 +1134,7 @@ static void __trap_handler(riscv_t *rv)
1134
1134
ir -> impl (rv , ir , rv -> csr_cycle , rv -> PC );
1135
1135
}
1136
1136
}
1137
+ #endif /* SYSTEM */
1137
1138
1138
1139
static void _trap_handler (riscv_t * rv )
1139
1140
{
You can’t perform that action at this time.
0 commit comments