summaryrefslogtreecommitdiff
path: root/configs/common/Options.py
diff options
context:
space:
mode:
authorLisa Hsu <hsul@eecs.umich.edu>2006-10-30 14:12:15 -0500
committerLisa Hsu <hsul@eecs.umich.edu>2006-10-30 14:12:15 -0500
commit883f0394f5eefea6fb541229564dcb8543d020fd (patch)
tree508043cf8942febb1e94a50e3458841c8c38c10f /configs/common/Options.py
parent9be53b10b302a3b8ca8fcaa38bf318aa4dcc641c (diff)
downloadgem5-883f0394f5eefea6fb541229564dcb8543d020fd.tar.xz
decouple the switch option from the warmup period option - parsing was confused otherwise, oops.
--HG-- extra : convert_revision : 951fc664c59363df5f5e026aa791d83c26f050ec
Diffstat (limited to 'configs/common/Options.py')
-rw-r--r--configs/common/Options.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/configs/common/Options.py b/configs/common/Options.py
index d89023082..69f48dc3b 100644
--- a/configs/common/Options.py
+++ b/configs/common/Options.py
@@ -53,6 +53,8 @@ parser.add_option("-r", "--checkpoint_restore", action="store", type="int",
# CPU Switching - default switch model goes from a checkpoint
# to a timing simple CPU with caches to warm up, then to detailed CPU for
# data measurement
-parser.add_option("-s", "--standard_switch", action="store", type="int",
- help="switch from timing CPU to Detailed CPU after a period of \
- <N> cycles warmup", default=5000000000)
+parser.add_option("-s", "--standard_switch", action="store_true",
+ help="switch from timing CPU to Detailed CPU")
+parser.add_option("-w", "--warmup", action="store", type="int",
+ help="if -s, then this is the warmup period. else, this is ignored",
+ default=5000000000)