diff options
author | Nathan Binkert <nate@binkert.org> | 2011-05-18 11:06:23 -0700 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2011-05-18 11:06:23 -0700 |
commit | 22263f50914e99128c46be4cf346e95267b3d928 (patch) | |
tree | 7a3cd5faaf9c0b48417b7e7b2a24fe917a77ad62 | |
parent | 3ed048e4f5854b260a29164da92ba16ad7881740 (diff) | |
download | gem5-22263f50914e99128c46be4cf346e95267b3d928.tar.xz |
gcc: fix an uninitialized variable warning from G++ 4.5
-rw-r--r-- | src/arch/arm/isa/insts/macromem.isa | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arch/arm/isa/insts/macromem.isa b/src/arch/arm/isa/insts/macromem.isa index d5800576c..d5b44cd05 100644 --- a/src/arch/arm/isa/insts/macromem.isa +++ b/src/arch/arm/isa/insts/macromem.isa @@ -541,6 +541,9 @@ let {{ for (unsigned i = 0; i < %(sRegs)d; i++) { destRegs.elements[i] = sourceRegs[i].elements[lane]; } + for (unsigned i = %(sRegs)d; i < %(dRegs)d * perDReg; ++i) { + destRegs.elements[i] = 0; + } %(unloadRegs)s ''' % { "sRegs" : sRegs, "dRegs" : dRegs, |