diff -r d6a4b669100c -r b055a08da7a7 src/cpu/o3/mem_dep_unit.hh --- a/src/cpu/o3/mem_dep_unit.hh Mon Sep 29 11:42:04 2014 +0100 +++ b/src/cpu/o3/mem_dep_unit.hh Mon Sep 29 11:42:17 2014 +0100 @@ -44,10 +44,10 @@ #define __CPU_O3_MEM_DEP_UNIT_HH__ #include +#include #include #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 MemDepEntry; - typedef RefCountingPtr MemDepEntryPtr; + typedef std::shared_ptr 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) diff -r d6a4b669100c -r b055a08da7a7 src/cpu/o3/mem_dep_unit_impl.hh --- a/src/cpu/o3/mem_dep_unit_impl.hh Mon Sep 29 11:42:04 2014 +0100 +++ b/src/cpu/o3/mem_dep_unit_impl.hh Mon Sep 29 11:42:17 2014 +0100 @@ -162,7 +162,7 @@ { ThreadID tid = inst->threadNumber; - MemDepEntryPtr inst_entry = new MemDepEntry(inst); + MemDepEntryPtr inst_entry = std::make_shared(inst); // Add the MemDepEntry to the hash. memDepHash.insert( @@ -259,7 +259,7 @@ { ThreadID tid = inst->threadNumber; - MemDepEntryPtr inst_entry = new MemDepEntry(inst); + MemDepEntryPtr inst_entry = std::make_shared(inst); // Insert the MemDepEntry into the hash. memDepHash.insert( @@ -310,7 +310,7 @@ ThreadID tid = barr_inst->threadNumber; - MemDepEntryPtr inst_entry = new MemDepEntry(barr_inst); + MemDepEntryPtr inst_entry = std::make_shared(barr_inst); // Add the MemDepEntry to the hash. memDepHash.insert(