We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8cdb69 commit 25c3298Copy full SHA for 25c3298
src/emulate.c
@@ -1171,6 +1171,7 @@ static void _trap_handler(riscv_t *rv)
1171
break;
1172
#endif /* SYSTEM */
1173
case ECALL_M:
1174
+ rv_trap_ecall_M(rv, stval);
1175
1176
default:
1177
__UNREACHABLE;
src/riscv.c
@@ -260,6 +260,7 @@ riscv_t *rv_create(riscv_user_t rv_attr)
260
.on_ebreak = ebreak_handler,
261
.on_memcpy = memcpy_handler,
262
.on_memset = memset_handler,
263
+ .on_trap = trap_handler,
264
};
265
memcpy(&rv->io, &io, sizeof(riscv_io_t));
266
}
0 commit comments