Skip to content

Commit f8cdb69

Browse files
committed
test
1 parent d926f2f commit f8cdb69

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/emulate.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ RV_TRAP_LIST
176176
rv->compressed = compress; \
177177
rv->csr_cycle = cycle; \
178178
rv->PC = PC; \
179-
IIF(RV32_HAS(SYSTEM))(rv->is_trapped = true, ); \
180179
SET_SCAUSE_AND_STVAL_THEN_TRAP(rv, type##_MISALIGNED, \
181180
IIF(IO)(addr, mask_or_pc)); \
182181
return false; \
@@ -1118,6 +1117,7 @@ void rv_step(void *arg)
11181117
#endif
11191118
}
11201119

1120+
#if RV32_HAS(SYSTEM)
11211121
static void __trap_handler(riscv_t *rv)
11221122
{
11231123
rv_insn_t *ir = mpool_alloc(rv->block_ir_mp);
@@ -1134,6 +1134,7 @@ static void __trap_handler(riscv_t *rv)
11341134
ir->impl(rv, ir, rv->csr_cycle, rv->PC);
11351135
}
11361136
}
1137+
#endif /* SYSTEM */
11371138

11381139
static void _trap_handler(riscv_t *rv)
11391140
{

0 commit comments

Comments
 (0)