diff options
author | Nuwan Jayasena <Nuwan.Jayasena@amd.com> | 2012-07-10 22:51:54 -0700 |
---|---|---|
committer | Nuwan Jayasena <Nuwan.Jayasena@amd.com> | 2012-07-10 22:51:54 -0700 |
commit | c10f348120ae4a61c782815280673fba5ee71157 (patch) | |
tree | 71ff97dd09f65e0532bd02d4651125be2989816a /src/mem/ruby/system/MemoryControl.cc | |
parent | 1740c4c448a65dee8b27dcdcdccdc1a6e8b4d6b6 (diff) | |
download | gem5-c10f348120ae4a61c782815280673fba5ee71157.tar.xz |
ruby: adds reset function to Ruby memory controllers
Diffstat (limited to 'src/mem/ruby/system/MemoryControl.cc')
-rw-r--r-- | src/mem/ruby/system/MemoryControl.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mem/ruby/system/MemoryControl.cc b/src/mem/ruby/system/MemoryControl.cc index cf6a618e0..c3b34d965 100644 --- a/src/mem/ruby/system/MemoryControl.cc +++ b/src/mem/ruby/system/MemoryControl.cc @@ -41,7 +41,11 @@ #include "mem/ruby/system/System.hh" using namespace std; -MemoryControl::MemoryControl(const Params *p) : SimObject(p), m_event(this) {}; +MemoryControl::MemoryControl(const Params *p) : SimObject(p), m_event(this) +{ + g_system_ptr->registerMemController(this); +} + MemoryControl::~MemoryControl() {}; RubyMemoryControl * |