[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stable-8.2.5 21/21] target/i386: no single-step exception after MOV or
From: |
Michael Tokarev |
Subject: |
[Stable-8.2.5 21/21] target/i386: no single-step exception after MOV or POP SS |
Date: |
Mon, 27 May 2024 10:24:31 +0300 |
From: Paolo Bonzini <pbonzini@redhat.com>
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: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit f0f0136abba688a6516647a79cc91e03fad6d5d7)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
diff --git a/target/i386/tcg/translate.c b/target/i386/tcg/translate.c
index cbf69a64e4..3df26c7425 100644
--- a/target/i386/tcg/translate.c
+++ b/target/i386/tcg/translate.c
@@ -2785,7 +2785,7 @@ do_gen_eob_worker(DisasContext *s, bool inhibit, bool
recheck_tf, bool jr)
if (recheck_tf) {
gen_helper_rechecking_single_step(tcg_env);
tcg_gen_exit_tb(NULL, 0);
- } else if (s->flags & HF_TF_MASK) {
+ } else if ((s->flags & HF_TF_MASK) && !inhibit) {
gen_helper_single_step(tcg_env);
} else if (jr &&
/* give irqs a chance to happen */
--
2.39.2
- [Stable-8.2.5 16/21] target/loongarch/kvm: Fix VM recovery from disk failures, (continued)
- [Stable-8.2.5 16/21] target/loongarch/kvm: Fix VM recovery from disk failures, Michael Tokarev, 2024/05/27
- [Stable-8.2.5 15/21] hw/core/machine: move compatibility flags for VirtIO-net USO to machine 8.1, Michael Tokarev, 2024/05/27
- [Stable-8.2.5 13/21] tcg/loongarch64: Fill out tcg_out_{ld, st} for vector regs, Michael Tokarev, 2024/05/27
- [Stable-8.2.5 17/21] hw/loongarch: Fix fdt memory node wrong 'reg', Michael Tokarev, 2024/05/27
- [Stable-8.2.5 14/21] target-i386: hyper-v: Correct kvm_hv_handle_exit return value, Michael Tokarev, 2024/05/27
- [Stable-8.2.5 18/21] hw/loongarch/virt: Fix FDT memory node address width, Michael Tokarev, 2024/05/27
- [Stable-8.2.5 19/21] dockerfiles: add 'MAKE' env variable to remaining containers, Michael Tokarev, 2024/05/27
- [Stable-8.2.5 20/21] target/i386: disable jmp_opt if EFLAGS.RF is 1, Michael Tokarev, 2024/05/27
- [Stable-8.2.5 21/21] target/i386: no single-step exception after MOV or POP SS,
Michael Tokarev <=