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 <pbonzini@redhat.com>
Reviewed-by: Tom Musta <tommusta@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
Paolo Bonzini authored and Alexander Graf committed 2014-11-04 23:26:10 +01:00
1 parent 72189ea41d
commit ebbd8b40a9
1 file changed
+1
+1
View File
@@ -2556,6 +2556,7 @@ target_ulong helper_dlmzb(CPUPPCState *env, target_ulong high,
}
i++;
}
i = 8;
if (update_Rc) {
env->crf[0] = 0x2;
}