diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2006-06-17 09:58:10 -0400 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2006-06-17 09:58:10 -0400 |
commit | 4a9c0a7dfc8aa1fcd70ec2b194691adec9ce424e (patch) | |
tree | cfda0fa61771fbe622dba67a1b424488d1af6d86 /src/sim/main.cc | |
parent | 7efd0eafd8e5bb7a9ff088d56f1de3bd871b5a2b (diff) | |
download | gem5-4a9c0a7dfc8aa1fcd70ec2b194691adec9ce424e.tar.xz |
Add --outdir option. Didn't call it "-d" since
that's already being used for "detailed cpu".
Needed to add extra function for user script
to pass parsed options back to m5 module.
configs/test/fs.py:
configs/test/test.py:
Call setStandardOptions().
src/python/m5/__init__.py:
Add --outdir option.
Add setStandardOptions() so user script can
pass parsed options back to m5 module.
src/sim/main.cc:
Add SWIG-wrappable function to set output dir.
--HG--
extra : convert_revision : 1323bee69ca920c699a1cd1218e15b7b0875c1e5
Diffstat (limited to 'src/sim/main.cc')
-rw-r--r-- | src/sim/main.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sim/main.cc b/src/sim/main.cc index f63aec9cc..fc057ea6f 100644 --- a/src/sim/main.cc +++ b/src/sim/main.cc @@ -297,6 +297,14 @@ main(int argc, char **argv) Py_Finalize(); } + +void +setOutputDir(const string &dir) +{ + simout.setDirectory(dir); +} + + IniFile inifile; SimObject * |