summaryrefslogtreecommitdiff
path: root/src/arch/arm/isa
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2011-05-18 11:06:23 -0700
committerNathan Binkert <nate@binkert.org>2011-05-18 11:06:23 -0700
commit22263f50914e99128c46be4cf346e95267b3d928 (patch)
tree7a3cd5faaf9c0b48417b7e7b2a24fe917a77ad62 /src/arch/arm/isa
parent3ed048e4f5854b260a29164da92ba16ad7881740 (diff)
downloadgem5-22263f50914e99128c46be4cf346e95267b3d928.tar.xz
gcc: fix an uninitialized variable warning from G++ 4.5
Diffstat (limited to 'src/arch/arm/isa')
-rw-r--r--src/arch/arm/isa/insts/macromem.isa3
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,