Skip to content

Commit 3cb3a77

Browse files
committed
target/i386: Save cc_op before loop insns
We forgot to update cc_op before these branch insns, which lead to losing track of the current eflags. Buglink: https://bugs.launchpad.net/qemu/+bug/1888165 Reviewed-by: Alex Bennée <[email protected]> Signed-off-by: Richard Henderson <[email protected]> Message-Id: <[email protected]>
1 parent 79826f9 commit 3cb3a77

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

target/i386/translate.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7148,6 +7148,7 @@ static target_ulong disas_insn(DisasContext *s, CPUState *cpu)
71487148
l1 = gen_new_label();
71497149
l2 = gen_new_label();
71507150
l3 = gen_new_label();
7151+
gen_update_cc_op(s);
71517152
b &= 3;
71527153
switch(b) {
71537154
case 0: /* loopnz */

0 commit comments

Comments
 (0)