diff options
author | Nathan Binkert <nate@binkert.org> | 2009-11-04 16:57:01 -0800 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2009-11-04 16:57:01 -0800 |
commit | 2c5fe6f95e64a5a97d56cccc6b8b5417cdd981ae (patch) | |
tree | 71a062791437d79c1063688b09d45d2cd754a9f9 /src/arch/mips | |
parent | fbfe92b5b8f4bfe229632d6d34e8ecb4dc7c1b29 (diff) | |
download | gem5-2c5fe6f95e64a5a97d56cccc6b8b5417cdd981ae.tar.xz |
build: fix compile problems pointed out by gcc 4.4
Diffstat (limited to 'src/arch/mips')
-rwxr-xr-x | src/arch/mips/dsp.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/arch/mips/dsp.cc b/src/arch/mips/dsp.cc index 6e4f7afea..b8b02ae9e 100755 --- a/src/arch/mips/dsp.cc +++ b/src/arch/mips/dsp.cc @@ -463,6 +463,8 @@ MipsISA::dspMuleq(int32_t a, int32_t b, int32_t mode, uint32_t *dspctl) uint64_t b_values[SIMD_MAX_VALS]; uint64_t c_values[SIMD_MAX_VALS]; + memset(c_values, 0, sizeof(c_values)); + simdUnpack(a, a_values, SIMD_FMT_PH, SIGNED); simdUnpack(b, b_values, SIMD_FMT_PH, SIGNED); @@ -743,7 +745,7 @@ MipsISA::dspMulsaq(int64_t dspac, int32_t a, int32_t b, int32_t ac, int nvals = SIMD_NVALS[fmt]; uint64_t a_values[SIMD_MAX_VALS]; uint64_t b_values[SIMD_MAX_VALS]; - int64_t temp[2]; + int64_t temp[2] = {0, 0}; uint32_t ouflag = 0; simdUnpack(a, a_values, fmt, SIGNED); |