projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4af6e40
)
Fix typo that leads to out of bounds array access on big endian systems
author
malc
<av1474@comtv.ru>
Wed, 13 May 2009 11:18:48 +0000
(15:18 +0400)
committer
malc
<av1474@comtv.ru>
Wed, 13 May 2009 11:18:48 +0000
(15:18 +0400)
target-ppc/op_helper.c
patch
|
blob
|
history
diff --git
a/target-ppc/op_helper.c
b/target-ppc/op_helper.c
index 2c6a27fcba226b9fe2203e93b77e817850377919..56fab9cb06438f7f2326aca61c48169e2a9b21cc 100644
(file)
--- a/
target-ppc/op_helper.c
+++ b/
target-ppc/op_helper.c
@@
-2723,7
+2723,7
@@
void helper_vlogefp (ppc_avr_t *r, ppc_avr_t *b)
#define VSHIFT(suffix, leftp) \
void helper_vs##suffix (ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) \
{ \
- int shift = b->u8[LO_IDX*
0x15] & 0x7;
\
+ int shift = b->u8[LO_IDX*
15] & 0x7;
\
int doit = 1; \
int i; \
for (i = 0; i < ARRAY_SIZE(r->u8); i++) { \