summaryrefslogtreecommitdiff
path: root/src/base/statistics.hh
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2014-10-20 18:03:54 -0400
committerAndreas Hansson <andreas.hansson@arm.com>2014-10-20 18:03:54 -0400
commit77f8f5d94cf9f2994f544dba14f4432ff4f3287f (patch)
tree56fb8725a2631755edc96a53f6fce0e95e1617b1 /src/base/statistics.hh
parentb976496a347208dc00d5998a31f3833bce14e049 (diff)
downloadgem5-77f8f5d94cf9f2994f544dba14f4432ff4f3287f.tar.xz
base: Fix for stats node on gcc < 4.6.3
This patch adds an explicit function to get the underlying node as gcc 4.6.1 and 4.6.2 have issues otherwise.
Diffstat (limited to 'src/base/statistics.hh')
-rw-r--r--src/base/statistics.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/base/statistics.hh b/src/base/statistics.hh
index 658652f05..a21bf81d1 100644
--- a/src/base/statistics.hh
+++ b/src/base/statistics.hh
@@ -2999,6 +2999,11 @@ class Temp
*/
operator NodePtr&() { return node; }
+ /**
+ * Makde gcc < 4.6.3 happy and explicitly get the underlying node.
+ */
+ NodePtr getNodePtr() const { return node; }
+
public:
/**
* Create a new ScalarStatNode.