Skip to content

Commit

Permalink
fix(trigger): extern label should not be inside switch case block. (#638
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ha0lyu authored Nov 6, 2024
1 parent 34ba225 commit 3e22e1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/isa/riscv64/system/trigger.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,10 @@ void trigger_handler(const trig_type_t type, const trig_action_t action, word_t
if (!trigger_reentrancy_check()) {
break;
}
case TRIG_TYPE_ICOUNT:
case TRIG_TYPE_ICOUNT: {
extern Decode *prev_s;
prev_s->pc = cpu.pc;
}
case TRIG_TYPE_MCONTROL:
case TRIG_TYPE_MCONTROL6:
trigger_action = action;
Expand Down

0 comments on commit 3e22e1f

Please sign in to comment.