summaryrefslogtreecommitdiff
path: root/src/base/cp_annotate.hh
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2014-10-16 05:49:47 -0400
committerAndreas Hansson <andreas.hansson@arm.com>2014-10-16 05:49:47 -0400
commit8b789ae451aa0b756b4e192629c78c3bcea34cdd (patch)
treebfbc3e34377a8711c516662f6760852e9d25e055 /src/base/cp_annotate.hh
parentad3f75dc81efc8818786c32d6190e3ed069b9fc6 (diff)
downloadgem5-8b789ae451aa0b756b4e192629c78c3bcea34cdd.tar.xz
base: Transition CP annotate to use shared_ptr
Diffstat (limited to 'src/base/cp_annotate.hh')
-rw-r--r--src/base/cp_annotate.hh5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/base/cp_annotate.hh b/src/base/cp_annotate.hh
index b5c968857..5d554aa73 100644
--- a/src/base/cp_annotate.hh
+++ b/src/base/cp_annotate.hh
@@ -45,6 +45,7 @@
#include <list>
#include <map>
+#include <memory>
#include <string>
#include <vector>
@@ -189,7 +190,7 @@ class CPA : SimObject
}
/* struct that is written to the annotation output file */
- struct AnnotateData : public RefCounted {
+ struct AnnotateData {
Tick time;
uint32_t data;
@@ -206,7 +207,7 @@ class CPA : SimObject
};
- typedef RefCountingPtr<AnnotateData> AnnDataPtr;
+ typedef std::shared_ptr<AnnotateData> AnnDataPtr;
/* header for the annotation file */
struct AnnotateHeader {