Skip to content

Commit

Permalink
Tweak RVOP_NO_NEXT
Browse files Browse the repository at this point in the history
RISC-V internal field 'is_interrupted' has been refined. Thus, the
corresponding check is not necessary to be enabled via ENABLE_GDBSTUB
conditional build.
  • Loading branch information
ChinYikMing committed Jun 15, 2024
1 parent 2ff8bf9 commit f2c8e48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/emulate.c
Original file line number Diff line number Diff line change
Expand Up @@ -455,9 +455,9 @@ enum {
};

#if RV32_HAS(GDBSTUB)
#define RVOP_NO_NEXT(ir) (!ir->next | rv->debug_mode | rv->is_interrupted)
#define RVOP_NO_NEXT(ir) (!ir->next | rv->debug_mode)
#else
#define RVOP_NO_NEXT(ir) (!ir->next)
#define RVOP_NO_NEXT(ir) (!ir->next | rv->is_interrupted)
#endif

/* record whether the branch is taken or not during emulation */
Expand Down

0 comments on commit f2c8e48

Please # to comment.