From f2c8e486d53d1f2371ca2299ec92c2b3e26c3593 Mon Sep 17 00:00:00 2001 From: ChinYikMing Date: Sun, 16 Jun 2024 01:56:10 +0800 Subject: [PATCH] Tweak RVOP_NO_NEXT RISC-V internal field 'is_interrupted' has been refined. Thus, the corresponding check is not necessary to be enabled via ENABLE_GDBSTUB conditional build. --- src/emulate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emulate.c b/src/emulate.c index 8a4edb774..54be07e6a 100644 --- a/src/emulate.c +++ b/src/emulate.c @@ -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 */