[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stable-7.2.12 19/19] target/i386: no single-step exception after MOV or
From: |
Michael Tokarev |
Subject: |
[Stable-7.2.12 19/19] target/i386: no single-step exception after MOV or POP SS |
Date: |
Mon, 27 May 2024 09:40:50 +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>
(Mjt: context fixup for v8.1.0-1189-gad75a51e84af "tcg: Rename cpu_env to
tcg_env")
diff --git a/target/i386/tcg/translate.c b/target/i386/tcg/translate.c
index f8578ad1ea..0d47b61603 100644
--- a/target/i386/tcg/translate.c
+++ b/target/i386/tcg/translate.c
@@ -2823,7 +2823,7 @@ do_gen_eob_worker(DisasContext *s, bool inhibit, bool
recheck_tf, bool jr)
if (recheck_tf) {
gen_helper_rechecking_single_step(cpu_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(cpu_env);
} else if (jr &&
/* give irqs a chance to happen */
--
2.39.2
- [Stable-7.2.12 01/19] gitlab-ci: Remove job building EDK2 firmware binaries, (continued)
- [Stable-7.2.12 01/19] gitlab-ci: Remove job building EDK2 firmware binaries, Michael Tokarev, 2024/05/27
- [Stable-7.2.12 02/19] gitlab/opensbi: Move to docker:stable, Michael Tokarev, 2024/05/27
- [Stable-7.2.12 07/19] tests/avocado: update sunxi kernel from armbian to 6.6.16, Michael Tokarev, 2024/05/27
- [Stable-7.2.12 11/19] target/i386: Give IRQs a chance when resetting HF_INHIBIT_IRQ_MASK, Michael Tokarev, 2024/05/27
- [Stable-7.2.12 04/19] nbd/server: do not poll within a coroutine context, Michael Tokarev, 2024/05/27
- [Stable-7.2.12 08/19] .gitlab-ci.d/cirrus.yml: Shorten the runtime of the macOS and FreeBSD jobs, Michael Tokarev, 2024/05/27
- [Stable-7.2.12 14/19] target/i386: rdpkru/wrpkru are no-prefix instructions, Michael Tokarev, 2024/05/27
- [Stable-7.2.12 16/19] ui/gtk: Check if fence_fd is equal to or greater than 0, Michael Tokarev, 2024/05/27
- [Stable-7.2.12 15/19] ui/gtk: Fix mouse/motion event scaling issue with GTK display backend, Michael Tokarev, 2024/05/27
- [Stable-7.2.12 13/19] target/i386: fix operand size for DATA16 REX.W POPCNT, Michael Tokarev, 2024/05/27
- [Stable-7.2.12 19/19] target/i386: no single-step exception after MOV or POP SS,
Michael Tokarev <=
- [Stable-7.2.12 17/19] target-i386: hyper-v: Correct kvm_hv_handle_exit return value, Michael Tokarev, 2024/05/27
- [Stable-7.2.12 18/19] target/i386: disable jmp_opt if EFLAGS.RF is 1, Michael Tokarev, 2024/05/27