projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72189ea
)
ppc: fix result of DLMZB when no zero bytes are found
author
Paolo Bonzini
<pbonzini@redhat.com>
Thu, 28 Aug 2014 17:15:03 +0000
(19:15 +0200)
committer
Alexander Graf
<agraf@suse.de>
Tue, 4 Nov 2014 22:26:10 +0000
(23:26 +0100)
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>
target-ppc/int_helper.c
patch
|
blob
|
history
diff --git
a/target-ppc/int_helper.c
b/target-ppc/int_helper.c
index 29ff4f6e4ee0c579837cc2c87689ce10f3b34d9d..83c1ad0654865471ae9f39ab928b2988a866c71c 100644
(file)
--- 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;
}