i dont think this patch is too controversial, so if no one says anything, I'll commit thursday or friday.
On Tue, Sep 15, 2009 at 2:29 AM, Korey Sewell <[email protected]>wrote: > # HG changeset patch > # User Korey Sewell <[email protected]> > # Date 1252996179 14400 > # Node ID dcff60745367eae1e3d16294a55ff0982188dd26 > # Parent cd671122f09c15ba25e42fe0cc0f5a1d29a8a31c > configs: add maxinsts option to SE example > 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 > > diff --git a/configs/common/Options.py b/configs/common/Options.py > --- a/configs/common/Options.py > +++ b/configs/common/Options.py > @@ -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 --git a/configs/common/Simulation.py b/configs/common/Simulation.py > --- a/configs/common/Simulation.py > +++ b/configs/common/Simulation.py > @@ -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 > -- - Korey
_______________________________________________ m5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/m5-dev
