Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ChinYikMing committed Oct 26, 2024
1 parent aeda753 commit 68d7534
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/riscv.h
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,12 @@ enum TRAP_CODE {
* should be be invoked \
*/ \
IIF(RV32_HAS(SYSTEM))(rv->is_trapped = true;, ); \
IIF(RV_PRIV_IS_U_OR_S_MODE())( \
rv->csr_scause = cause; \
rv->csr_stval = tval;, \
rv->csr_mcause = cause; \
rv->csr_mtval = tval; \
); \
rv->io.on_trap(rv); \
}
/* clang-format on */
Expand Down

0 comments on commit 68d7534

Please sign in to comment.