From 22263f50914e99128c46be4cf346e95267b3d928 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Wed, 18 May 2011 11:06:23 -0700 Subject: [PATCH] gcc: fix an uninitialized variable warning from G++ 4.5 --- src/arch/arm/isa/insts/macromem.isa | 3 +++ 1 file changed, 3 insertions(+) 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, -- 2.30.2