From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGj9g-00060q-E2 for qemu-devel@nongnu.org; Fri, 21 Feb 2014 01:00:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGj9Y-0002Bo-F3 for qemu-devel@nongnu.org; Fri, 21 Feb 2014 01:00:12 -0500 Received: from e39.co.us.ibm.com ([32.97.110.160]:41816) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGj9Y-00026k-8G for qemu-devel@nongnu.org; Fri, 21 Feb 2014 01:00:04 -0500 Received: from /spool/local by e39.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 20 Feb 2014 23:00:02 -0700 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Roth In-Reply-To: <1389386396-22367-1-git-send-email-rth@twiddle.net> References: <1389386396-22367-1-git-send-email-rth@twiddle.net> Message-ID: <20140221055957.20750.95141@loki> Date: Thu, 20 Feb 2014 23:59:57 -0600 Subject: Re: [Qemu-devel] [PATCH] target-i386: Fix CC_OP_CLR vs PF List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson , qemu-devel@nongnu.org Cc: qemu-stable@nongnu.org, 1267955@bugs.launchpad.net Quoting Richard Henderson (2014-01-10 14:39:56) > Parity should be set for a zero result. > = > Signed-off-by: Richard Henderson ping for 1.7.1 > --- > target-i386/cc_helper.c | 2 +- > target-i386/translate.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > = > diff --git a/target-i386/cc_helper.c b/target-i386/cc_helper.c > index ee04092..05dd12b 100644 > --- a/target-i386/cc_helper.c > +++ b/target-i386/cc_helper.c > @@ -103,7 +103,7 @@ target_ulong helper_cc_compute_all(target_ulong dst, = target_ulong src1, > case CC_OP_EFLAGS: > return src1; > case CC_OP_CLR: > - return CC_Z; > + return CC_Z | CC_P; > = > case CC_OP_MULB: > return compute_all_mulb(dst, src1); > diff --git a/target-i386/translate.c b/target-i386/translate.c > index b0f2279..34f35e7 100644 > --- a/target-i386/translate.c > +++ b/target-i386/translate.c > @@ -748,7 +748,7 @@ static void gen_compute_eflags(DisasContext *s) > return; > } > if (s->cc_op =3D=3D CC_OP_CLR) { > - tcg_gen_movi_tl(cpu_cc_src, CC_Z); > + tcg_gen_movi_tl(cpu_cc_src, CC_Z | CC_P); > set_cc_op(s, CC_OP_EFLAGS); > return; > } > -- = > 1.8.4.2