Skip to content

Commit 25c3298

Browse files
committed
test
1 parent f8cdb69 commit 25c3298

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/emulate.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,6 +1171,7 @@ static void _trap_handler(riscv_t *rv)
11711171
break;
11721172
#endif /* SYSTEM */
11731173
case ECALL_M:
1174+
rv_trap_ecall_M(rv, stval);
11741175
break;
11751176
default:
11761177
__UNREACHABLE;

src/riscv.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ riscv_t *rv_create(riscv_user_t rv_attr)
260260
.on_ebreak = ebreak_handler,
261261
.on_memcpy = memcpy_handler,
262262
.on_memset = memset_handler,
263+
.on_trap = trap_handler,
263264
};
264265
memcpy(&rv->io, &io, sizeof(riscv_io_t));
265266
}

0 commit comments

Comments
 (0)