summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorVincentius Robby <acolyte@umich.edu>2007-08-08 18:43:12 -0400
committerVincentius Robby <acolyte@umich.edu>2007-08-08 18:43:12 -0400
commitec4000e0e284834df0eb1db792074a1b11f21cc8 (patch)
tree9b42b9697c8fe3cf00c3ab8257002146d8d37a9c /configs
parent1caed1465470269c36897904edddf8d4dc9765b1 (diff)
downloadgem5-ec4000e0e284834df0eb1db792074a1b11f21cc8.tar.xz
Added fastmem option.
Lets CPU accesses to physical memory bypass Bus. --HG-- extra : convert_revision : e56e3879de47ee10951a19bfcd8b62b6acdfb30c
Diffstat (limited to 'configs')
-rw-r--r--configs/common/Options.py1
-rw-r--r--configs/example/fs.py5
-rw-r--r--configs/example/se.py3
3 files changed, 9 insertions, 0 deletions
diff --git a/configs/common/Options.py b/configs/common/Options.py
index 4f2b317c0..225916840 100644
--- a/configs/common/Options.py
+++ b/configs/common/Options.py
@@ -32,6 +32,7 @@ parser.add_option("-t", "--timing", action="store_true")
parser.add_option("-n", "--num_cpus", type="int", default=1)
parser.add_option("--caches", action="store_true")
parser.add_option("--l2cache", action="store_true")
+parser.add_option("--fastmem", action="store_true")
# Run duration options
parser.add_option("-m", "--maxtick", type="int")
diff --git a/configs/example/fs.py b/configs/example/fs.py
index ca1408970..3a57fe5b8 100644
--- a/configs/example/fs.py
+++ b/configs/example/fs.py
@@ -132,6 +132,9 @@ for i in xrange(np):
else:
test_sys.cpu[i].connectMemPorts(test_sys.membus)
+ if options.fastmem:
+ test_sys.cpu[i].physmem_port = test_sys.physmem.port
+
if len(bm) == 2:
if m5.build_env['TARGET_ISA'] == 'alpha':
drive_sys = makeLinuxAlphaSystem(drive_mem_mode, bm[1])
@@ -139,6 +142,8 @@ if len(bm) == 2:
drive_sys = makeSparcSystem(drive_mem_mode, bm[1])
drive_sys.cpu = DriveCPUClass(cpu_id=0)
drive_sys.cpu.connectMemPorts(drive_sys.membus)
+ if options.fastmem:
+ drive_sys.cpu.physmem_port = drive_sys.physmem.port
if options.kernel is not None:
drive_sys.kernel = binary(options.kernel)
diff --git a/configs/example/se.py b/configs/example/se.py
index 20fe75a21..639bcd7c6 100644
--- a/configs/example/se.py
+++ b/configs/example/se.py
@@ -114,6 +114,9 @@ for i in xrange(np):
system.cpu[i].connectMemPorts(system.membus)
system.cpu[i].workload = process
+ if options.fastmem:
+ system.cpu[0].physmem_port = system.physmem.port
+
root = Root(system = system)
Simulation.run(options, root, system, FutureClass)