From ebbd8b40a9f8dcc9ff048c2ce82a6219e4e80d38 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Thu, 28 Aug 2014 19:15:03 +0200 Subject: ppc: fix result of DLMZB when no zero bytes are found 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(+) (limited to 'target-ppc') diff --git a/target-ppc/int_helper.c b/target-ppc/int_helper.c index 29ff4f6e4e..83c1ad0654 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; } -- cgit v1.2.3