summaryrefslogtreecommitdiff
path: root/src/cpu/o3/mem_dep_unit.hh
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2014-10-16 05:49:49 -0400
committerAndreas Hansson <andreas.hansson@arm.com>2014-10-16 05:49:49 -0400
commita769963d16b7b259580fa2da1e84f62aae0a5a42 (patch)
tree332d757f9688973ccbab5995e59abc43c1936a68 /src/cpu/o3/mem_dep_unit.hh
parentdb3739682d7c54839b627ff8f7a4448a9dc99987 (diff)
downloadgem5-a769963d16b7b259580fa2da1e84f62aae0a5a42.tar.xz
o3: Use shared_ptr for MemDepEntry
This patch transitions the o3 MemDepEntry from the ad-hoc RefCountingPtr to the c++11 shared_ptr. There are no changes in behaviour, and the code modifications are mainly replacing "new" with "make_shared".
Diffstat (limited to 'src/cpu/o3/mem_dep_unit.hh')
-rw-r--r--src/cpu/o3/mem_dep_unit.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cpu/o3/mem_dep_unit.hh b/src/cpu/o3/mem_dep_unit.hh
index a42aa13ce..3cc1d88fe 100644
--- a/src/cpu/o3/mem_dep_unit.hh
+++ b/src/cpu/o3/mem_dep_unit.hh
@@ -44,10 +44,10 @@
#define __CPU_O3_MEM_DEP_UNIT_HH__
#include <list>
+#include <memory>
#include <set>
#include "base/hashmap.hh"
-#include "base/refcnt.hh"
#include "base/statistics.hh"
#include "cpu/inst_seq.hh"
#include "debug/MemDepUnit.hh"
@@ -164,13 +164,13 @@ class MemDepUnit
class MemDepEntry;
- typedef RefCountingPtr<MemDepEntry> MemDepEntryPtr;
+ typedef std::shared_ptr<MemDepEntry> MemDepEntryPtr;
/** Memory dependence entries that track memory operations, marking
* when the instruction is ready to execute and what instructions depend
* upon it.
*/
- class MemDepEntry : public RefCounted {
+ class MemDepEntry {
public:
/** Constructs a memory dependence entry. */
MemDepEntry(DynInstPtr &new_inst)