summaryrefslogtreecommitdiff
path: root/src/cpu/o3/bpred_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/bpred_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/bpred_unit.hh')
-rw-r--r--src/cpu/o3/bpred_unit.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cpu/o3/bpred_unit.hh b/src/cpu/o3/bpred_unit.hh
index 44f9bea79..b32d2bd23 100644
--- a/src/cpu/o3/bpred_unit.hh
+++ b/src/cpu/o3/bpred_unit.hh
@@ -62,6 +62,8 @@ class BPredUnit
PredType predictor;
+ const std::string _name;
+
public:
/**
@@ -69,6 +71,8 @@ class BPredUnit
*/
BPredUnit(DerivO3CPUParams *params);
+ const std::string &name() const { return _name; }
+
/**
* Registers statistics.
*/