diff options
author | Ali Saidi <Ali.Saidi@ARM.com> | 2012-01-09 18:08:20 -0600 |
---|---|---|
committer | Ali Saidi <Ali.Saidi@ARM.com> | 2012-01-09 18:08:20 -0600 |
commit | 80a6907927461241883a47b552272702978216f8 (patch) | |
tree | 4cfb467aa115465241653336f7ab3ed345ad8251 /configs | |
parent | 3f9e352de4e1ac34e1f0b83c3f66af2175b524f4 (diff) | |
download | gem5-80a6907927461241883a47b552272702978216f8.tar.xz |
ARM: Add support for initparam m5 op
Diffstat (limited to 'configs')
-rw-r--r-- | configs/common/Options.py | 3 | ||||
-rw-r--r-- | configs/example/fs.py | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/configs/common/Options.py b/configs/common/Options.py index d5ea85090..2d4f52bc1 100644 --- a/configs/common/Options.py +++ b/configs/common/Options.py @@ -63,7 +63,8 @@ parser.add_option("--work-end-exit-count", action="store", type="int", help="exit at specified work end count") parser.add_option("--work-begin-exit-count", action="store", type="int", help="exit at specified work begin count") - +parser.add_option("--init-param", action="store", type="int", default=0, + help="Parameter available in simulation with m5 initparam") # Checkpointing options ###Note that performing checkpointing via python script files will override diff --git a/configs/example/fs.py b/configs/example/fs.py index 5945e5d9b..8ae8d8310 100644 --- a/configs/example/fs.py +++ b/configs/example/fs.py @@ -151,6 +151,8 @@ if options.kernel is not None: if options.script is not None: test_sys.readfile = options.script +test_sys.init_param = options.init_param + test_sys.cpu = [TestCPUClass(cpu_id=i) for i in xrange(np)] CacheConfig.config_cache(options, test_sys) @@ -199,6 +201,7 @@ if len(bm) == 2: if options.kernel is not None: drive_sys.kernel = binary(options.kernel) + drive_sys.init_param = options.init_param root = makeDualRoot(test_sys, drive_sys, options.etherdump) elif len(bm) == 1: root = Root(system=test_sys) |