changeset 59f08019c39a in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=59f08019c39a
description:
        configs: add maxinsts option on command line
        -option to allow threads to run to a max_inst_any_thread which is more 
useful/quicker in a lot of
        cases then always having to figure out what tick to run your simulation 
to.

diffstat:

2 files changed, 5 insertions(+)
configs/common/Options.py    |    1 +
configs/common/Simulation.py |    4 ++++

diffs (25 lines):

diff -r 30d92d2b66a1 -r 59f08019c39a configs/common/Options.py
--- a/configs/common/Options.py Tue Sep 15 22:36:47 2009 -0700
+++ b/configs/common/Options.py Wed Sep 16 09:45:30 2009 -0400
@@ -38,6 +38,7 @@
 # Run duration options
 parser.add_option("-m", "--maxtick", type="int")
 parser.add_option("--maxtime", type="float")
+parser.add_option("--maxinsts", type="int")
 parser.add_option("--prog_intvl", type="int")
 
 
diff -r 30d92d2b66a1 -r 59f08019c39a configs/common/Simulation.py
--- a/configs/common/Simulation.py      Tue Sep 15 22:36:47 2009 -0700
+++ b/configs/common/Simulation.py      Wed Sep 16 09:45:30 2009 -0400
@@ -95,6 +95,10 @@
         for i in xrange(np):
             testsys.cpu[i].progress_interval = options.prog_intvl
 
+    if options.maxinsts:
+        for i in xrange(np):
+            testsys.cpu[i].max_insts_any_thread = options.maxinsts
+
     if cpu_class:
         switch_cpus = [cpu_class(defer_registration=True, cpu_id=(np+i))
                        for i in xrange(np)]
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to