summaryrefslogtreecommitdiff
path: root/configs/example
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2013-06-13 07:24:25 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2013-06-13 07:24:25 -0500
commitbe981772b96fe21247d65d53f16be35a3ca057dd (patch)
treeec7379e6786bdfed618605d2e6b2a1fdd29ff246 /configs/example
parent64270b19c38cd854e0de78636281519a8fefe50b (diff)
downloadgem5-be981772b96fe21247d65d53f16be35a3ca057dd.tar.xz
config: Do not instantiate membus when using ruby
This patch moves the instantiation of system.membus in se.py to the area of code where classic memory system has been dealt with. Ruby does not require this bus and hence it should not be instantiated.
Diffstat (limited to 'configs/example')
-rw-r--r--configs/example/se.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/configs/example/se.py b/configs/example/se.py
index 6878742c8..299a2efb0 100644
--- a/configs/example/se.py
+++ b/configs/example/se.py
@@ -159,7 +159,7 @@ if options.smt and options.num_cpus > 1:
np = options.num_cpus
system = System(cpu = [CPUClass(cpu_id=i) for i in xrange(np)],
physmem = MemClass(range=AddrRange("512MB")),
- membus = CoherentBus(), mem_mode = test_mem_mode)
+ mem_mode = test_mem_mode)
# Sanity check
if options.fastmem:
@@ -225,6 +225,7 @@ if options.ruby:
system.cpu[i].itb.walker.port = ruby_port.slave
system.cpu[i].dtb.walker.port = ruby_port.slave
else:
+ system.membus = CoherentBus()
system.system_port = system.membus.slave
system.physmem.port = system.membus.master
CacheConfig.config_cache(options, system)