target/i386 patch queue
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(-)
[PULL 1/1] target/i386: Update cc_op for SAHF
Removing the call to gen_compute_eflags meant we no longer updated cc_op after computing EFLAGS.
Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/3537
--- target/i386/tcg/emit.c.inc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
target/i386/tcg/emit.c.inc +6 -3
@@ -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)
Signature · 1 line
2.43.0
Stefan Hajnoczi
AppliedApplied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/11.1 for any user-visible changes.