diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-09-14 19:16:21 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-09-14 19:16:21 +0000 |
commit | 9f4576f08b19f40d870afe5be0f9fa04e8b2b8c0 (patch) | |
tree | 6c92229637d0382f4299c19d073ae5d5bfb3ab0b /target-sparc/op_helper.c | |
parent | 0df5bdbe0f5125aa6b8f49ceb9336827975552e3 (diff) | |
download | hqemu-9f4576f08b19f40d870afe5be0f9fa04e8b2b8c0.zip hqemu-9f4576f08b19f40d870afe5be0f9fa04e8b2b8c0.tar.gz |
Fix array subscript above array bounds error
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5219 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sparc/op_helper.c')
-rw-r--r-- | target-sparc/op_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-sparc/op_helper.c b/target-sparc/op_helper.c index 9bd0d65..7bbe0c6 100644 --- a/target-sparc/op_helper.c +++ b/target-sparc/op_helper.c @@ -1061,7 +1061,7 @@ void helper_st_asi(target_ulong addr, uint64_t val, int asi, int size) break; case 0x01c00a04: /* MXCC control register */ if (size == 4) - env->mxccregs[3] = (env->mxccregs[0xa] & 0xffffffff00000000ULL) + env->mxccregs[3] = (env->mxccregs[3] & 0xffffffff00000000ULL) | val; else DPRINTF_MXCC("%08x: unimplemented access size: %d\n", addr, |