summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorJason Power <power.jg@gmail.com>2015-02-26 09:58:26 -0600
committerJason Power <power.jg@gmail.com>2015-02-26 09:58:26 -0600
commit670f44e05eb8eb1a56b36c4390cf83807a28d823 (patch)
treea050dd6f28aebe5221bcf109c2dadb085ad1a67c /configs
parentf18d2120fa66803912dcce61fe6c704a6a05a2d1 (diff)
downloadgem5-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 'configs')
-rw-r--r--configs/ruby/Ruby.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/configs/ruby/Ruby.py b/configs/ruby/Ruby.py
index c3a61e7d1..e0d53fd6c 100644
--- a/configs/ruby/Ruby.py
+++ b/configs/ruby/Ruby.py
@@ -235,7 +235,8 @@ def create_system(options, full_system, system, piobus = None, dma_ports = []):
# Create a backing copy of physical memory in case required
if options.access_backing_store:
- ruby.phys_mem = SimpleMemory(range=AddrRange(options.mem_size),
+ ruby.access_backing_store = True
+ ruby.phys_mem = SimpleMemory(range=system.mem_ranges[0],
in_addr_map=False)
def send_evicts(options):