changeset 0b4a08751b42 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=0b4a08751b42
description:
        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:

 configs/example/se.py |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 9df73385c878 -r 0b4a08751b42 configs/example/se.py
--- a/configs/example/se.py     Tue Jun 11 09:43:05 2013 +0200
+++ b/configs/example/se.py     Thu Jun 13 07:24:25 2013 -0500
@@ -159,7 +159,7 @@
 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 @@
             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)
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to