diff options
author | Nathan Binkert <binkertn@umich.edu> | 2007-02-21 16:42:16 -0800 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2007-02-21 16:42:16 -0800 |
commit | 06ae2d04455d39acb1db642952e56b6a0359cf22 (patch) | |
tree | d5ce7af9d3dbdeb3180af720547e53dc7df9bf99 /src/arch/sparc | |
parent | 2a67f2b08cb2d478c3b425d778a75bb2ce46a813 (diff) | |
download | gem5-06ae2d04455d39acb1db642952e56b6a0359cf22.tar.xz |
Fix compile issues on gcc 4.1.x related to namespaces.
This basically involves moving the builder code outside of any
namespace. While we're at it, move a few braces outside of
a couple #if/#else/#endif blocks so it's easier to match up
the braces.
--HG--
extra : convert_revision : a7834532aadc63b0e0ff988dd5745049e02e6312
Diffstat (limited to 'src/arch/sparc')
-rw-r--r-- | src/arch/sparc/tlb.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/arch/sparc/tlb.cc b/src/arch/sparc/tlb.cc index 82b1ed175..8a9ea3d0e 100644 --- a/src/arch/sparc/tlb.cc +++ b/src/arch/sparc/tlb.cc @@ -43,8 +43,7 @@ /* @todo remove some of the magic constants. -- ali * */ -namespace SparcISA -{ +namespace SparcISA { TLB::TLB(const std::string &name, int s) : SimObject(name), size(s), usedEntries(0), lastReplaced(0), @@ -1329,6 +1328,9 @@ TLB::unserialize(Checkpoint *cp, const std::string §ion) } } +/* end namespace SparcISA */ } + +using namespace SparcISA; DEFINE_SIM_OBJECT_CLASS_NAME("SparcTLB", TLB) @@ -1371,4 +1373,3 @@ CREATE_SIM_OBJECT(DTB) } REGISTER_SIM_OBJECT("SparcDTB", DTB) -} |