diff --git a/qemu/target/i386/translate.c b/qemu/target/i386/translate.c index 860255ec..135f639c 100644 --- a/qemu/target/i386/translate.c +++ b/qemu/target/i386/translate.c @@ -4363,7 +4363,7 @@ static void gen_sse(CPUX86State *env, DisasContext *s, int b, } ot = mo_64_32(s->dflag); gen_ldst_modrm(env, s, modrm, ot, OR_TMP0, 0); - tcg_gen_andc_tl(tcg_ctx, cpu_T0, cpu_regs[s->vex_v], cpu_T0); + tcg_gen_andc_tl(tcg_ctx, cpu_T0, cpu_T0, cpu_regs[s->vex_v]); gen_op_mov_reg_v(tcg_ctx, ot, reg, cpu_T0); gen_op_update1_cc(tcg_ctx); set_cc_op(s, CC_OP_LOGICB + ot);