summaryrefslogtreecommitdiff
path: root/src/mem/ruby/system/System.hh
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.hh
parent1740c4c448a65dee8b27dcdcdccdc1a6e8b4d6b6 (diff)
downloadgem5-c10f348120ae4a61c782815280673fba5ee71157.tar.xz
ruby: adds reset function to Ruby memory controllers
Diffstat (limited to 'src/mem/ruby/system/System.hh')
-rw-r--r--src/mem/ruby/system/System.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mem/ruby/system/System.hh b/src/mem/ruby/system/System.hh
index d7d01bcac..3d86c3e02 100644
--- a/src/mem/ruby/system/System.hh
+++ b/src/mem/ruby/system/System.hh
@@ -47,6 +47,7 @@
class Network;
class Profiler;
+class MemoryControl;
class RubySystem : public SimObject
{
@@ -128,6 +129,7 @@ class RubySystem : public SimObject
void registerProfiler(Profiler*);
void registerAbstractController(AbstractController*);
void registerSparseMemory(SparseMemory*);
+ void registerMemController(MemoryControl *mc);
bool eventQueueEmpty() { return eventq->empty(); }
void enqueueRubyEvent(Tick tick)
@@ -161,6 +163,8 @@ class RubySystem : public SimObject
static int m_memory_size_bits;
static Network* m_network_ptr;
+ MemoryControl *m_memory_controller;
+
public:
static Profiler* m_profiler_ptr;
static MemoryVector* m_mem_vec_ptr;