Skip to content

Commit 2cd8deb

Browse files
bonziniMichael Tokarev
authored andcommitted
target/i386: no single-step exception after MOV or POP SS
Intel SDM 18.3.1.4 "If an occurrence of the MOV or POP instruction loads the SS register executes with EFLAGS.TF = 1, no single-step debug exception occurs following the MOV or POP instruction." Cc: [email protected] Signed-off-by: Paolo Bonzini <[email protected]> (cherry picked from commit f0f0136) Signed-off-by: Michael Tokarev <[email protected]>
1 parent 89ed6d4 commit 2cd8deb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

target/i386/tcg/translate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2817,7 +2817,7 @@ do_gen_eob_worker(DisasContext *s, bool inhibit, bool recheck_tf, bool jr)
28172817
if (recheck_tf) {
28182818
gen_helper_rechecking_single_step(tcg_env);
28192819
tcg_gen_exit_tb(NULL, 0);
2820-
} else if (s->flags & HF_TF_MASK) {
2820+
} else if ((s->flags & HF_TF_MASK) && !inhibit) {
28212821
gen_helper_single_step(tcg_env);
28222822
} else if (jr &&
28232823
/* give irqs a chance to happen */

0 commit comments

Comments
 (0)