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

Backports commit 3cb3a7720b01830abd5fbb81819dbb9271bf7821 from qemu
This commit is contained in:
Richard Henderson 2021-02-25 23:36:40 -05:00 committed by Lioncash
parent 001d2e6a29
commit 6390789a09

View file

@ -7690,6 +7690,7 @@ static target_ulong disas_insn(DisasContext *s, CPUState *cpu)
l1 = gen_new_label(tcg_ctx);
l2 = gen_new_label(tcg_ctx);
l3 = gen_new_label(tcg_ctx);
gen_update_cc_op(s);
b &= 3;
switch(b) {
case 0: /* loopnz */