summaryrefslogtreecommitdiff
path: root/src/mem/ruby/system/System.hh
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2012-10-15 17:27:17 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2012-10-15 17:27:17 -0500
commit61434a9943236e8586d9ac772cfe3de3145abb78 (patch)
tree94e4760fbcc0a3c234752f587ba706a06089b8f9 /src/mem/ruby/system/System.hh
parentc14e6cfc4e84ba198ef6ec2f9cae2b3eda15813c (diff)
downloadgem5-61434a9943236e8586d9ac772cfe3de3145abb78.tar.xz
ruby: register multiple memory controllers
Currently the Ruby System maintains pointer to only one of the memory controllers. But there can be multiple controllers in the system. This patch adds a vector of memory controllers.
Diffstat (limited to 'src/mem/ruby/system/System.hh')
-rw-r--r--src/mem/ruby/system/System.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mem/ruby/system/System.hh b/src/mem/ruby/system/System.hh
index e9e46fedf..245fa677e 100644
--- a/src/mem/ruby/system/System.hh
+++ b/src/mem/ruby/system/System.hh
@@ -152,12 +152,12 @@ class RubySystem : public ClockedObject
static int m_memory_size_bits;
Network* m_network_ptr;
- MemoryControl *m_memory_controller;
+ std::vector<MemoryControl *> m_memory_controller_vec;
+ std::vector<AbstractController *> m_abs_cntrl_vec;
public:
Profiler* m_profiler_ptr;
MemoryVector* m_mem_vec_ptr;
- std::vector<AbstractController*> m_abs_cntrl_vec;
bool m_warmup_enabled;
bool m_cooldown_enabled;
CacheRecorder* m_cache_recorder;