From: Paolo Bonzini Date: Thu, 28 Aug 2014 17:15:03 +0000 (+0200) Subject: ppc: fix result of DLMZB when no zero bytes are found X-Git-Tag: v2.2.0-rc0~3^2~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ebbd8b40a9f8dcc9ff048c2ce82a6219e4e80d38;p=thirdparty%2Fqemu.git 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 --- diff --git a/target-ppc/int_helper.c b/target-ppc/int_helper.c index 29ff4f6e4ee..83c1ad06548 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; }