All of lore.kernel.org
 help / color / mirror / Atom feed
* [PULL 0/1] target/i386 patch queue
@ 2026-08-01 16:35 Richard Henderson
  2026-08-01 16:35 ` [PULL 1/1] target/i386: Update cc_op for SAHF Richard Henderson
  2026-08-05  0:54 ` [PULL 0/1] target/i386 patch queue Stefan Hajnoczi
  0 siblings, 2 replies; 3+ messages in thread
From: Richard Henderson @ 2026-08-01 16:35 UTC (permalink / raw)
  To: qemu-devel

The following changes since commit b428fe036233cbd15d37e3c027ab6ca4d3661a80:

  Merge tag 'pull-target-arm-20260731' of https://gitlab.com/pm215/qemu into staging (2026-07-31 16:19:04 -0400)

are available in the Git repository at:

  https://gitlab.com/rth7680/qemu.git tags/pull-i386-20260801

for you to fetch changes up to c25f69595ad052473463540f4d7944b9b73e94ec:

  target/i386: Update cc_op for SAHF (2026-08-01 09:33:18 -0700)

----------------------------------------------------------------
target/i386: Update cc_op for SAHF

----------------------------------------------------------------
Richard Henderson (1):
      target/i386: Update cc_op for SAHF

 target/i386/tcg/emit.c.inc | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PULL 1/1] target/i386: Update cc_op for SAHF
  2026-08-01 16:35 [PULL 0/1] target/i386 patch queue Richard Henderson
@ 2026-08-01 16:35 ` Richard Henderson
  2026-08-05  0:54 ` [PULL 0/1] target/i386 patch queue Stefan Hajnoczi
  1 sibling, 0 replies; 3+ messages in thread
From: Richard Henderson @ 2026-08-01 16:35 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-stable, Christian Quante, Philippe Mathieu-Daudé

Removing the call to gen_compute_eflags meant we no longer
updated cc_op after computing EFLAGS.

Cc: qemu-stable@nongnu.org
Fixes: da7649c6aeef ("target/i386/tcg: do not compute all flags for SAHF")
Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/3537
Tested-by: Christian Quante <christian@quante.one>
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
 target/i386/tcg/emit.c.inc | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/target/i386/tcg/emit.c.inc b/target/i386/tcg/emit.c.inc
index e4ef5a8758..473f415766 100644
--- a/target/i386/tcg/emit.c.inc
+++ b/target/i386/tcg/emit.c.inc
@@ -3780,10 +3780,13 @@ static void gen_SAHF(DisasContext *s, X86DecodedInsn *decode)
         return gen_illegal_opcode(s);
     }
     tcg_gen_shri_tl(s->T0, cpu_regs[R_EAX], 8);
-    gen_neg_setcc(s, JCC_O << 1, cpu_cc_src);
-    tcg_gen_andi_tl(cpu_cc_src, cpu_cc_src, CC_O);
+    gen_neg_setcc(s, JCC_O << 1, s->T1);
+    tcg_gen_andi_tl(s->T1, s->T1, CC_O);
     tcg_gen_andi_tl(s->T0, s->T0, CC_S | CC_Z | CC_A | CC_P | CC_C);
-    tcg_gen_or_tl(cpu_cc_src, cpu_cc_src, s->T0);
+    tcg_gen_or_tl(s->T0, s->T0, s->T1);
+
+    decode->cc_src = s->T0;
+    decode->cc_op = CC_OP_EFLAGS;
 }
 
 static void gen_SALC(DisasContext *s, X86DecodedInsn *decode)
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PULL 0/1] target/i386 patch queue
  2026-08-01 16:35 [PULL 0/1] target/i386 patch queue Richard Henderson
  2026-08-01 16:35 ` [PULL 1/1] target/i386: Update cc_op for SAHF Richard Henderson
@ 2026-08-05  0:54 ` Stefan Hajnoczi
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Hajnoczi @ 2026-08-05  0:54 UTC (permalink / raw)
  To: Richard Henderson; +Cc: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 116 bytes --]

Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/11.1 for any user-visible changes.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-08-05  0:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-01 16:35 [PULL 0/1] target/i386 patch queue Richard Henderson
2026-08-01 16:35 ` [PULL 1/1] target/i386: Update cc_op for SAHF Richard Henderson
2026-08-05  0:54 ` [PULL 0/1] target/i386 patch queue Stefan Hajnoczi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.