From 670f44e05eb8eb1a56b36c4390cf83807a28d823 Mon Sep 17 00:00:00 2001 From: Jason Power Date: Thu, 26 Feb 2015 09:58:26 -0600 Subject: 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 --- src/mem/ruby/system/System.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mem/ruby/system/System.cc') 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"); -- cgit v1.2.3