Skip to content

Commit e8c8ee9

Browse files
committed
Handle misaligned access through trap
1 parent e04d77e commit e8c8ee9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/emulate.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ RV_TRAP_LIST
188188
rv->compressed = compress; \
189189
rv->csr_cycle = cycle; \
190190
rv->PC = PC; \
191+
rv->is_trapped = true; \
191192
rv_trap_##type##_misaligned(rv, IIF(IO)(addr, mask_or_pc)); \
192193
return false; \
193194
}

0 commit comments

Comments
 (0)