From 6efb930e19056e3421f3bb1996bf370883873b32 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Mon, 22 Sep 2008 08:25:57 -0700 Subject: gcc: Version 4.3 is pretty anal about shadowing types, placate it. In the future, it would be nice to put the O3CPU into its own namespace so that we don't end up hardcoding pointers to the global namespace. --- src/base/varargs.hh | 4 ++-- src/cpu/o3/cpu_policy.hh | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/base/varargs.hh b/src/base/varargs.hh index 2ba8c240a..f307e58d1 100644 --- a/src/base/varargs.hh +++ b/src/base/varargs.hh @@ -150,7 +150,7 @@ struct Any : public Base template struct Argument : public RefCountingPtr > { - typedef RefCountingPtr > Base; + typedef RefCountingPtr > Base; Argument() { } Argument(const Null &null) { } @@ -169,7 +169,7 @@ template class List { public: - typedef Argument Argument; + typedef VarArgs::Argument Argument; typedef std::list list; typedef typename list::iterator iterator; typedef typename list::const_iterator const_iterator; diff --git a/src/cpu/o3/cpu_policy.hh b/src/cpu/o3/cpu_policy.hh index 32a0adcf1..c06c9a201 100644 --- a/src/cpu/o3/cpu_policy.hh +++ b/src/cpu/o3/cpu_policy.hh @@ -65,7 +65,7 @@ struct SimpleCPUPolicy /** Typedef for the branch prediction unit (which includes the BP, * RAS, and BTB). */ - typedef BPredUnit BPredUnit; + typedef ::BPredUnit BPredUnit; /** Typedef for the register file. Most classes assume a unified * physical register file. */ @@ -75,15 +75,15 @@ struct SimpleCPUPolicy /** Typedef for the rename map. */ typedef SimpleRenameMap RenameMap; /** Typedef for the ROB. */ - typedef ROB ROB; + typedef ::ROB ROB; /** Typedef for the instruction queue/scheduler. */ typedef InstructionQueue IQ; /** Typedef for the memory dependence unit. */ - typedef MemDepUnit MemDepUnit; + typedef ::MemDepUnit MemDepUnit; /** Typedef for the LSQ. */ - typedef LSQ LSQ; + typedef ::LSQ LSQ; /** Typedef for the thread-specific LSQ units. */ - typedef LSQUnit LSQUnit; + typedef ::LSQUnit LSQUnit; /** Typedef for fetch. */ typedef DefaultFetch Fetch; @@ -109,7 +109,7 @@ struct SimpleCPUPolicy typedef DefaultIEWDefaultCommit IEWStruct; /** The struct for communication within the IEW stage. */ - typedef IssueStruct IssueStruct; + typedef ::IssueStruct IssueStruct; /** The struct for all backwards communication. */ typedef TimeBufStruct TimeStruct; -- cgit v1.2.3