Skip to content

Commit

Permalink
Log ecall
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Jan 19, 2024
1 parent 8d52987 commit 3be2162
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion riscv_cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,8 @@ static void raise_exception2(RISCVCPUState *s, uint32_t cause,
flag = (cause & CAUSE_INTERRUPT) == 0;
//// Previously: if (cause == CAUSE_SUPERVISOR_ECALL || cause == CAUSE_ILLEGAL_INSTRUCTION)
if (cause == CAUSE_SUPERVISOR_ECALL) ////
flag = 0;
//// Previously: flag = 0;
flag = 1; ////
#endif
if (flag) {
log_printf("raise_exception: cause=0x%08x tval=0x", cause);
Expand Down

0 comments on commit 3be2162

Please sign in to comment.