From patchwork Mon Apr 15 06:59:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Dovgalyuk X-Patchwork-Id: 236502 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 4196D2C00CD for ; Mon, 15 Apr 2013 16:59:41 +1000 (EST) Received: from localhost ([::1]:48474 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URdO7-0001zQ-KE for incoming@patchwork.ozlabs.org; Mon, 15 Apr 2013 02:59:39 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44288) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URdNo-0001z9-1G for qemu-devel@nongnu.org; Mon, 15 Apr 2013 02:59:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1URdNn-0000ew-7W for qemu-devel@nongnu.org; Mon, 15 Apr 2013 02:59:19 -0400 Received: from mail.ispras.ru ([83.149.199.45]:48399) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URdNn-0000ZP-0G for qemu-devel@nongnu.org; Mon, 15 Apr 2013 02:59:19 -0400 Received: from PASHAISP (unknown [80.250.189.177]) by mail.ispras.ru (Postfix) with ESMTPSA id 47B30540151 for ; Mon, 15 Apr 2013 10:59:16 +0400 (MSK) From: "Pavel Dovgaluk" To: "'qemu-devel'" Date: Mon, 15 Apr 2013 10:59:15 +0400 Message-ID: <002401ce39a6$be6900f0$3b3b02d0$@Dovgaluk@ispras.ru> MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac45pr4v6UOrrkSfRAqxJLe6FMKdew== Content-Language: ru X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 83.149.199.45 Subject: [Qemu-devel] [PATCH] i386 ROR r8/r16 instruction fix X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Fixed EFLAGS corruption by ROR r8/r16 instruction located at the end of the TB. Signed-off-by: Pavel Dovgalyuk Reviewed-by: Aurelien Jarno Reviewed-by: Richard Henderson --- 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);