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 2014-08-28 19:15:03 +02:00 committed by Alexander Graf
parent 72189ea41d
commit ebbd8b40a9

View File

@ -2556,6 +2556,7 @@ target_ulong helper_dlmzb(CPUPPCState *env, target_ulong high,
} }
i++; i++;
} }
i = 8;
if (update_Rc) { if (update_Rc) {
env->crf[0] = 0x2; env->crf[0] = 0x2;
} }