Skip to content

Commit

Permalink
target/i386: Save cc_op before loop insns
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
rth7680 committed Jul 24, 2020
1 parent 79826f9 commit 3cb3a77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions target/i386/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -7148,6 +7148,7 @@ static target_ulong disas_insn(DisasContext *s, CPUState *cpu)
l1 = gen_new_label();
l2 = gen_new_label();
l3 = gen_new_label();
gen_update_cc_op(s);
b &= 3;
switch(b) {
case 0: /* loopnz */
Expand Down

0 comments on commit 3cb3a77

Please sign in to comment.