diff options
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) |