when i use m5.simulate.dump() it says "object module has no attribute stats"?


----- Original Message ----
From: Steve Reinhardt <[EMAIL PROTECTED]>
To: M5 users mailing list <[email protected]>
Sent: Tuesday, November 27, 2007 1:28:14 AM
Subject: Re: [m5-users] Simulation Questions

On Nov 26, 2007 6:37 PM, Steve Stephen <[EMAIL PROTECTED]> wrote:
>
> Is there a way to simulate for a particular numbe rof instructions just like
> --maxticks option?

Yes, you can set the max_insts_any_thread or max_insts_all_threads
params on a CPU object and the simulation will exit once any (or all)
threads on that CPU have executed that many instructions.

> Is there a get stats. on an interim basis while the
> simulation is running, like stopping teh simulation in middle, noting down
> results and resuming it again?

I don't see a command-line param for it, but you could roll your own
by setting up a loop in your simulation script where you call
m5.simulate(interval) and then m5.stats.dump() and then repeat.  You
can look in configs/common/Simulation.py to see something similar in
the code that dumps checkpoints at regular intervals.

Steve

>
>  ________________________________
> Get easy, one-click access to your favorites. Make Yahoo! your homepage.
> _______________________________________________
> m5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
>
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users


      
____________________________________________________________________________________
Get easy, one-click access to your favorites. 
Make Yahoo! your homepage.
http://www.yahoo.com/r/hs 
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to