Skip to content

Commit 2df7a36

Browse files
committed
target/s390x: Drop check for singlestep_enabled
GDB single-stepping is now handled generically. Signed-off-by: Richard Henderson <[email protected]>
1 parent b6509e3 commit 2df7a36

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

target/s390x/tcg/translate.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ struct DisasContext {
149149
uint64_t pc_tmp;
150150
uint32_t ilen;
151151
enum cc_op cc_op;
152-
bool do_debug;
153152
};
154153

155154
/* Information carried about a condition to be evaluated. */
@@ -6544,7 +6543,6 @@ static void s390x_tr_init_disas_context(DisasContextBase *dcbase, CPUState *cs)
65446543

65456544
dc->cc_op = CC_OP_DYNAMIC;
65466545
dc->ex_value = dc->base.tb->cs_base;
6547-
dc->do_debug = dc->base.singlestep_enabled;
65486546
}
65496547

65506548
static void s390x_tr_tb_start(DisasContextBase *db, CPUState *cs)
@@ -6596,10 +6594,8 @@ static void s390x_tr_tb_stop(DisasContextBase *dcbase, CPUState *cs)
65966594
/* FALLTHRU */
65976595
case DISAS_PC_CC_UPDATED:
65986596
/* Exit the TB, either by raising a debug exception or by return. */
6599-
if (dc->do_debug) {
6600-
gen_exception(EXCP_DEBUG);
6601-
} else if ((dc->base.tb->flags & FLAG_MASK_PER) ||
6602-
dc->base.is_jmp == DISAS_PC_STALE_NOCHAIN) {
6597+
if ((dc->base.tb->flags & FLAG_MASK_PER) ||
6598+
dc->base.is_jmp == DISAS_PC_STALE_NOCHAIN) {
66036599
tcg_gen_exit_tb(NULL, 0);
66046600
} else {
66056601
tcg_gen_lookup_and_goto_ptr();

0 commit comments

Comments
 (0)