From c0618198908b592ff0c165b671cb5d8d785d83ca Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Wed, 6 Mar 2013 21:53:57 -0600 Subject: ruby: remove the functional copy of memory in se mode This patch removes the functional copy of the memory that was maintained in the se mode. Now ruby itself will provide the data. --- configs/example/ruby_fs.py | 2 ++ configs/example/se.py | 3 +++ 2 files changed, 5 insertions(+) (limited to 'configs') diff --git a/configs/example/ruby_fs.py b/configs/example/ruby_fs.py index 8d21cfb32..32ddb90bf 100644 --- a/configs/example/ruby_fs.py +++ b/configs/example/ruby_fs.py @@ -114,5 +114,7 @@ for (i, cpu) in enumerate(system.cpu): cpu.interrupts.int_master = system.piobus.slave cpu.interrupts.int_slave = system.piobus.master + system.ruby._cpu_ruby_ports[i].access_phys_mem = True + root = Root(full_system = True, system = system) Simulation.run(options, root, system, FutureClass) diff --git a/configs/example/se.py b/configs/example/se.py index fe5524ef5..20149cccd 100644 --- a/configs/example/se.py +++ b/configs/example/se.py @@ -187,6 +187,9 @@ if options.ruby: print >> sys.stderr, "Ruby requires TimingSimpleCPU or O3CPU!!" sys.exit(1) + # Set the option for physmem so that it is not allocated any space + system.physmem.null = True + options.use_map = True Ruby.create_system(options, system) assert(options.num_cpus == len(system.ruby._cpu_ruby_ports)) -- cgit v1.2.3