This seems fine for me.  I'd adjust the commit message though since
this will apply to both SE and FS.

  Nate

On Mon, Sep 14, 2009 at 11:29 PM, 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
>
>
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to