summaryrefslogtreecommitdiff
path: root/src/cpu/o3/mem_dep_unit.hh
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2009-03-07 14:30:54 -0800
committerNathan Binkert <nate@binkert.org>2009-03-07 14:30:54 -0800
commitac7bda0212a22d86d9e24665998f294b96869680 (patch)
treee3bb70fc93d366a4bbbe8b038e0d58505c5ce93a /src/cpu/o3/mem_dep_unit.hh
parentfcaf1b74b0b4b40891a71b3b8bccd3f173aeff56 (diff)
downloadgem5-ac7bda0212a22d86d9e24665998f294b96869680.tar.xz
stats: fix duplicate statistics names.
This generally requires providing a more meaningful name() function for a class.
Diffstat (limited to 'src/cpu/o3/mem_dep_unit.hh')
-rw-r--r--src/cpu/o3/mem_dep_unit.hh8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/cpu/o3/mem_dep_unit.hh b/src/cpu/o3/mem_dep_unit.hh
index fa1c33320..4f9e7c9f7 100644
--- a/src/cpu/o3/mem_dep_unit.hh
+++ b/src/cpu/o3/mem_dep_unit.hh
@@ -65,7 +65,11 @@ class InstructionQueue;
* dependence prediction schemes.
*/
template <class MemDepPred, class Impl>
-class MemDepUnit {
+class MemDepUnit
+{
+ protected:
+ std::string _name;
+
public:
typedef typename Impl::DynInstPtr DynInstPtr;
@@ -79,7 +83,7 @@ class MemDepUnit {
~MemDepUnit();
/** Returns the name of the memory dependence unit. */
- std::string name() const;
+ std::string name() const { return _name; }
/** Initializes the unit with parameters and a thread id. */
void init(DerivO3CPUParams *params, int tid);