target/i386/tcg: update cc_op after PUSHF

PUSHF already needs to compute the full eflags; set the cc_op to
CC_OP_EFLAGS to avoid duplicate computation in subsequent code.

Reviewed-by: Richard Henderson <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
This commit is contained in:
Paolo Bonzini committed 2025-12-27 10:11:11 +01:00
1 parent 0db1b556e4
commit e661e2d7a3
1 file changed
+2
+2
View File
@@ -3250,6 +3250,8 @@ static void gen_PUSHF(DisasContext *s, X86DecodedInsn *decode)
gen_update_cc_op(s);
gen_helper_read_eflags(s->T0, tcg_env);
gen_push_v(s, s->T0);
decode->cc_src = s->T0;
decode->cc_op = CC_OP_EFLAGS;
}
static MemOp gen_shift_count(DisasContext *s, X86DecodedInsn *decode,