summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2007-04-27 13:59:17 -0700
committerNathan Binkert <binkertn@umich.edu>2007-04-27 13:59:17 -0700
commit69d259b6ae97b9f6803a34c794baec752977d611 (patch)
treeb5b187138642842f9b9a04b8c36c8ccf569a2723 /src/arch
parentb5037ad82b954a86102cc03325a12c755c59f347 (diff)
downloadgem5-69d259b6ae97b9f6803a34c794baec752977d611.tar.xz
gcc 4.1 claims that mem_data might be used uninitialized,
though I don't believe that's true. Placate it anyway. --HG-- extra : convert_revision : dcd9427af14f0e7a33510054bee4ecbe73e050be
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/sparc/isa/formats/mem/swap.isa2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/sparc/isa/formats/mem/swap.isa b/src/arch/sparc/isa/formats/mem/swap.isa
index b71542a2b..f3d15670f 100644
--- a/src/arch/sparc/isa/formats/mem/swap.isa
+++ b/src/arch/sparc/isa/formats/mem/swap.isa
@@ -39,7 +39,7 @@ def template SwapExecute {{
Addr EA;
%(fp_enable_check)s;
%(op_decl)s;
- uint64_t mem_data;
+ uint64_t mem_data = 0;
%(op_rd)s;
%(ea_code)s;