diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2006-07-20 19:00:40 -0400 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2006-07-20 19:00:40 -0400 |
commit | e8a329507566a6de71d5b60250f48d1ce6fa44fe (patch) | |
tree | 9fde84fddc1b106e255a0340de5767cc6a983c07 /configs/test/fs.py | |
parent | 15e5ce96c76a20b9b27e5f7d7ed29e962422ad1a (diff) | |
download | gem5-e8a329507566a6de71d5b60250f48d1ce6fa44fe.tar.xz |
Enforce the timing cpu ticking at it's clock rate
Add a max time option in seconds and a single system root clock be 1THz
configs/test/fs.py:
Add a max time option in seconds and a single system root clock be 1THz
src/cpu/simple/timing.cc:
src/cpu/simple/timing.hh:
Enforce the timing cpu ticking at it's clock rate
--HG--
extra : convert_revision : a1b0de27abde867f9c3da5bec11639e3d82a95f5
Diffstat (limited to 'configs/test/fs.py')
-rw-r--r-- | configs/test/fs.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/configs/test/fs.py b/configs/test/fs.py index f4c50fc23..7e89b7dd4 100644 --- a/configs/test/fs.py +++ b/configs/test/fs.py @@ -10,6 +10,7 @@ parser = optparse.OptionParser() parser.add_option("-d", "--detailed", action="store_true") parser.add_option("-t", "--timing", action="store_true") parser.add_option("-m", "--maxtick", type="int") +parser.add_option("--maxtime", type="float") parser.add_option("--dual", help="Run full system using dual systems", action="store_true") @@ -102,7 +103,7 @@ if options.dual: MyLinuxAlphaSystem(readfile=script('netperf-stream-nt-client.rcS')), MyLinuxAlphaSystem(readfile=script('netperf-server.rcS'))) else: - root = TsunamiRoot(clock = '2GHz', system = MyLinuxAlphaSystem()) + root = TsunamiRoot(clock = '1THz', system = MyLinuxAlphaSystem()) m5.instantiate(root) @@ -116,6 +117,10 @@ m5.instantiate(root) if options.maxtick: exit_event = m5.simulate(options.maxtick) +elif options.maxtime: + simtime = int(options.maxtime * root.clock.value) + print "simulating for: ", simtime + exit_event = m5.simulate(simtime) else: exit_event = m5.simulate() |