diff options
author | Jason Power <power.jg@gmail.com> | 2015-02-26 09:58:26 -0600 |
---|---|---|
committer | Jason Power <power.jg@gmail.com> | 2015-02-26 09:58:26 -0600 |
commit | 670f44e05eb8eb1a56b36c4390cf83807a28d823 (patch) | |
tree | a050dd6f28aebe5221bcf109c2dadb085ad1a67c /src/mem/ruby/system/System.cc | |
parent | f18d2120fa66803912dcce61fe6c704a6a05a2d1 (diff) | |
download | gem5-670f44e05eb8eb1a56b36c4390cf83807a28d823.tar.xz |
Ruby: Update backing store option to propagate through to all RubyPorts
Previously, the user would have to manually set access_backing_store=True
on all RubyPorts (Sequencers) in the config files.
Now, instead there is one global option that each RubyPort checks on
initialization.
Committed by: Nilay Vaish <nilay@cs.wisc.edu>
Diffstat (limited to 'src/mem/ruby/system/System.cc')
-rw-r--r-- | src/mem/ruby/system/System.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mem/ruby/system/System.cc b/src/mem/ruby/system/System.cc index 6aad5bd05..b93dacdfc 100644 --- a/src/mem/ruby/system/System.cc +++ b/src/mem/ruby/system/System.cc @@ -38,6 +38,7 @@ #include "mem/ruby/common/Address.hh" #include "mem/ruby/network/Network.hh" #include "mem/ruby/system/System.hh" +#include "mem/simple_mem.hh" #include "sim/eventq.hh" #include "sim/simulate.hh" @@ -50,7 +51,7 @@ uint32_t RubySystem::m_block_size_bits; uint32_t RubySystem::m_memory_size_bits; RubySystem::RubySystem(const Params *p) - : ClockedObject(p) + : ClockedObject(p), m_access_backing_store(p->access_backing_store) { if (g_system_ptr != NULL) fatal("Only one RubySystem object currently allowed.\n"); |