From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36236) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xljkq-0001ze-CD for qemu-devel@nongnu.org; Tue, 04 Nov 2014 14:27:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xljkk-0007xY-8n for qemu-devel@nongnu.org; Tue, 04 Nov 2014 14:27:00 -0500 From: Alexander Graf Date: Tue, 4 Nov 2014 20:26:21 +0100 Message-Id: <1415129211-9740-4-git-send-email-agraf@suse.de> In-Reply-To: <1415129211-9740-1-git-send-email-agraf@suse.de> References: <1415129211-9740-1-git-send-email-agraf@suse.de> Subject: [Qemu-devel] [PULL 03/33] 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-ppc@nongnu.org Cc: peter.maydell@linaro.org, qemu-devel@nongnu.org, Paolo Bonzini From: Paolo Bonzini 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 Reviewed-by: Tom Musta Signed-off-by: Alexander Graf --- 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 29ff4f6..83c1ad0 100644 --- a/target-ppc/int_helper.c +++ b/target-ppc/int_helper.c @@ -2556,6 +2556,7 @@ target_ulong helper_dlmzb(CPUPPCState *env, target_ulong high, } i++; } + i = 8; if (update_Rc) { env->crf[0] = 0x2; } -- 1.8.1.4