diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2014-08-28 19:15:03 +0200 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2014-11-04 23:26:10 +0100 |
commit | ebbd8b40a9f8dcc9ff048c2ce82a6219e4e80d38 (patch) | |
tree | cd44a1407c326bfbc86089eab201c3f6f36abe93 /target-ppc | |
parent | 72189ea41d3a9748ffc740a3af1b98abc551aa09 (diff) |
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>
Diffstat (limited to 'target-ppc')
-rw-r--r-- | target-ppc/int_helper.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |