[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stable-8.2.5 20/21] target/i386: disable jmp_opt if EFLAGS.RF is 1
From: |
Michael Tokarev |
Subject: |
[Stable-8.2.5 20/21] target/i386: disable jmp_opt if EFLAGS.RF is 1 |
Date: |
Mon, 27 May 2024 10:24:30 +0300 |
From: Paolo Bonzini <pbonzini@redhat.com>
If EFLAGS.RF is 1, special processing in gen_eob_worker() is needed and
therefore goto_tb cannot be used.
Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 8225bff7c5db504f50e54ef66b079854635dba70)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
diff --git a/target/i386/tcg/translate.c b/target/i386/tcg/translate.c
index b8c648a756..cbf69a64e4 100644
--- a/target/i386/tcg/translate.c
+++ b/target/i386/tcg/translate.c
@@ -6935,7 +6935,7 @@ static void i386_tr_init_disas_context(DisasContextBase
*dcbase, CPUState *cpu)
dc->cpuid_7_0_ecx_features = env->features[FEAT_7_0_ECX];
dc->cpuid_xsave_features = env->features[FEAT_XSAVE];
dc->jmp_opt = !((cflags & CF_NO_GOTO_TB) ||
- (flags & (HF_TF_MASK | HF_INHIBIT_IRQ_MASK)));
+ (flags & (HF_RF_MASK | HF_TF_MASK | HF_INHIBIT_IRQ_MASK)));
/*
* If jmp_opt, we want to handle each string instruction individually.
* For icount also disable repz optimization so that each iteration
--
2.39.2
- [Stable-8.2.5 06/21] target/i386: fix operand size for DATA16 REX.W POPCNT, (continued)
- [Stable-8.2.5 06/21] target/i386: fix operand size for DATA16 REX.W POPCNT, Michael Tokarev, 2024/05/27
- [Stable-8.2.5 09/21] configure: quote -D options that are passed through to meson, 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 08/21] target/i386: fix feature dependency for WAITPKG, 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 14/21] target-i386: hyper-v: Correct kvm_hv_handle_exit return value, Michael Tokarev, 2024/05/27
- [Stable-8.2.5 12/21] ui/gtk: Check if fence_fd is equal to or greater than 0, Michael Tokarev, 2024/05/27
- [Stable-8.2.5 16/21] target/loongarch/kvm: Fix VM recovery from disk failures, 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 18/21] hw/loongarch/virt: Fix FDT memory node address width, Michael Tokarev, 2024/05/27
- [Stable-8.2.5 20/21] target/i386: disable jmp_opt if EFLAGS.RF is 1,
Michael Tokarev <=
- [Stable-8.2.5 19/21] dockerfiles: add 'MAKE' env variable to remaining containers, Michael Tokarev, 2024/05/27
- [Stable-8.2.5 21/21] target/i386: no single-step exception after MOV or POP SS, Michael Tokarev, 2024/05/27