From: Pavel Dovgaluk Date: Mon, 15 Apr 2013 06:59:15 +0000 (+0400) Subject: i386 ROR r8/r16 instruction fix X-Git-Tag: v1.5.0-rc0~201 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=089305ac;p=thirdparty%2Fqemu.git i386 ROR r8/r16 instruction fix Fixed EFLAGS corruption by ROR r8/r16 instruction located at the end of the TB. Signed-off-by: Pavel Dovgalyuk Reviewed-by: Richard Henderson Signed-off-by: Aurelien Jarno --- diff --git a/target-i386/translate.c b/target-i386/translate.c index 233f24ff410..40f891da143 100644 --- a/target-i386/translate.c +++ b/target-i386/translate.c @@ -1775,6 +1775,7 @@ static void gen_rot_rm_T1(DisasContext *s, int ot, int op1, int is_right) if (is_right) { tcg_gen_shri_tl(cpu_cc_src2, cpu_T[0], mask - 1); tcg_gen_shri_tl(cpu_cc_dst, cpu_T[0], mask); + tcg_gen_andi_tl(cpu_cc_dst, cpu_cc_dst, 1); } else { tcg_gen_shri_tl(cpu_cc_src2, cpu_T[0], mask); tcg_gen_andi_tl(cpu_cc_dst, cpu_T[0], 1);