summaryrefslogtreecommitdiff
path: root/src/mem/ruby/system/System.cc
diff options
context:
space:
mode:
authorNuwan Jayasena <Nuwan.Jayasena@amd.com>2012-07-10 22:51:54 -0700
committerNuwan Jayasena <Nuwan.Jayasena@amd.com>2012-07-10 22:51:54 -0700
commitc10f348120ae4a61c782815280673fba5ee71157 (patch)
tree71ff97dd09f65e0532bd02d4651125be2989816a /src/mem/ruby/system/System.cc
parent1740c4c448a65dee8b27dcdcdccdc1a6e8b4d6b6 (diff)
downloadgem5-c10f348120ae4a61c782815280673fba5ee71157.tar.xz
ruby: adds reset function to Ruby memory controllers
Diffstat (limited to 'src/mem/ruby/system/System.cc')
-rw-r--r--src/mem/ruby/system/System.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mem/ruby/system/System.cc b/src/mem/ruby/system/System.cc
index 078e35492..3efa74a6a 100644
--- a/src/mem/ruby/system/System.cc
+++ b/src/mem/ruby/system/System.cc
@@ -125,6 +125,11 @@ RubySystem::registerSparseMemory(SparseMemory* s)
m_sparse_memory_vector.push_back(s);
}
+void
+RubySystem::registerMemController(MemoryControl *mc) {
+ m_memory_controller = mc;
+}
+
RubySystem::~RubySystem()
{
delete m_network_ptr;
@@ -390,6 +395,8 @@ RubySystem::startup()
delete m_cache_recorder;
m_cache_recorder = NULL;
m_warmup_enabled = false;
+ // reset DRAM
+ m_memory_controller->reset();
// Restore eventq head
eventq_head = eventq->replaceHead(eventq_head);
// Restore curTick