Received: from eggs.gnu.org ([208.118.235.92]:37527) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTdpR-0005jh-Pb for qemu-devel@nongnu.org; Sat, 20 Apr 2013 15:52:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UTdpP-00015n-Dj for qemu-devel@nongnu.org; Sat, 20 Apr 2013 15:52:09 -0400 Received: from hall.aurel32.net ([2001:470:1f15:c4f::1]:50298) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTdpP-00015Z-6V for qemu-devel@nongnu.org; Sat, 20 Apr 2013 15:52:07 -0400 Date: Sat, 20 Apr 2013 21:52:04 +0200 From: Aurelien Jarno Message-ID: <20130420195204.GB5000@ohm.aurel32.net> References: <002401ce39a6$be6900f0$3b3b02d0$@Dovgaluk@ispras.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <002401ce39a6$be6900f0$3b3b02d0$@Dovgaluk@ispras.ru> Subject: Re: [Qemu-devel] [PATCH] i386 ROR r8/r16 instruction fix List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Pavel Dovgaluk Cc: 'qemu-devel' On Mon, Apr 15, 2013 at 10:59:15AM +0400, Pavel Dovgaluk wrote: > Fixed EFLAGS corruption by ROR r8/r16 instruction located at the end of the TB. > > Signed-off-by: Pavel Dovgalyuk > --- > target-i386/translate.c | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/target-i386/translate.c b/target-i386/translate.c > index 233f24f..40f891d 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); Thanks, applied. -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net