Commit 9f4576f08b19f40d870afe5be0f9fa04e8b2b8c0

Authored by blueswir1
1 parent 0df5bdbe

Fix array subscript above array bounds error

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5219 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
target-sparc/op_helper.c
... ... @@ -1061,7 +1061,7 @@ void helper_st_asi(target_ulong addr, uint64_t val, int asi, int size)
1061 1061 break;
1062 1062 case 0x01c00a04: /* MXCC control register */
1063 1063 if (size == 4)
1064   - env->mxccregs[3] = (env->mxccregs[0xa] & 0xffffffff00000000ULL)
  1064 + env->mxccregs[3] = (env->mxccregs[3] & 0xffffffff00000000ULL)
1065 1065 | val;
1066 1066 else
1067 1067 DPRINTF_MXCC("%08x: unimplemented access size: %d\n", addr,
... ...