diff options
author | malc <av1474@comtv.ru> | 2009-05-13 15:18:48 +0400 |
---|---|---|
committer | malc <av1474@comtv.ru> | 2009-05-13 15:18:48 +0400 |
commit | 1481e16abbab14a2e19410770f97cb764bb9be16 (patch) | |
tree | 0f1a5bc3f8787cd03518b310b1cdbefc657d01c1 /target-ppc/op_helper.c | |
parent | ETRAX: Correct setting of ethernet station address. (diff) | |
download | qemu-kvm-1481e16abbab14a2e19410770f97cb764bb9be16.tar.gz qemu-kvm-1481e16abbab14a2e19410770f97cb764bb9be16.tar.bz2 qemu-kvm-1481e16abbab14a2e19410770f97cb764bb9be16.zip |
Fix typo that leads to out of bounds array access on big endian systems
Diffstat (limited to 'target-ppc/op_helper.c')
-rw-r--r-- | target-ppc/op_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-ppc/op_helper.c b/target-ppc/op_helper.c index 2c6a27fcb..56fab9cb0 100644 --- 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++) { \ |