From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44355) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPFIK-0005i8-UA for qemu-devel@nongnu.org; Wed, 03 Sep 2014 14:28:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XPFIB-0007Ql-US for qemu-devel@nongnu.org; Wed, 03 Sep 2014 14:28:36 -0400 Message-ID: <54075DC4.50705@gmail.com> Date: Wed, 03 Sep 2014 13:28:20 -0500 From: Tom Musta MIME-Version: 1.0 References: <1409246113-6519-1-git-send-email-pbonzini@redhat.com> <1409246113-6519-8-git-send-email-pbonzini@redhat.com> In-Reply-To: <1409246113-6519-8-git-send-email-pbonzini@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 07/17] ppc: fix result of DLMZB when no zero bytes are found List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , qemu-devel@nongnu.org Cc: dgibson@redhat.com, qemu-ppc@nongnu.org On 8/28/2014 12:15 PM, Paolo Bonzini wrote: > It must return 8 and place 8 in XER, but the current code uses > i directly which is 9 at this point of the code. > > Signed-off-by: Paolo Bonzini > --- > target-ppc/int_helper.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/target-ppc/int_helper.c b/target-ppc/int_helper.c > index 9c1c5cd..7955bf7 100644 > --- a/target-ppc/int_helper.c > +++ b/target-ppc/int_helper.c > @@ -2573,6 +2573,7 @@ target_ulong helper_dlmzb(CPUPPCState *env, target_ulong high, > } > i++; > } > + i = 8; > if (update_Rc) { > env->crf[0] = 0x2; > } > Reviewed-by: Tom Musta