From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40134) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XN3Ia-0008Jb-Bd for qemu-devel@nongnu.org; Thu, 28 Aug 2014 13:15:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XN3IT-0000iI-KM for qemu-devel@nongnu.org; Thu, 28 Aug 2014 13:15:48 -0400 From: Paolo Bonzini Date: Thu, 28 Aug 2014 19:15:03 +0200 Message-Id: <1409246113-6519-8-git-send-email-pbonzini@redhat.com> In-Reply-To: <1409246113-6519-1-git-send-email-pbonzini@redhat.com> References: <1409246113-6519-1-git-send-email-pbonzini@redhat.com> Subject: [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: qemu-devel@nongnu.org Cc: dgibson@redhat.com, qemu-ppc@nongnu.org, tommusta@gmail.com 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; } -- 1.8.3.1