From: Nathan Binkert Date: Wed, 18 May 2011 18:06:23 +0000 (-0700) Subject: gcc: fix an uninitialized variable warning from G++ 4.5 X-Git-Tag: stable_2012_02_02~315 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=22263f50914e99128c46be4cf346e95267b3d928;p=gem5.git gcc: fix an uninitialized variable warning from G++ 4.5 --- 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,