Hi,

1- checkpoint/resetstat commands take "number of ticks" as argument
> 2- '-F' option take "number of iinstructions" as argument
>
> So what should I do if I want to sync checkpoint/resetstat with '-F'
>
> For example, I want to switch from fast forward to timing at
> 10,000,000,000 tick. I can write
>
> /sbin/m5 resetstats 10000000000

but what should I pass to '-F'?
>

This is a tricky question, since you'd need to know the number of
instructions that have been executed during the same 10B ticks.

It would probably be easier to use the checkpointing functionality instead
of trying to infer the point in the simulation at which you should reset
statistics and switch cpus (i.e. don't specify the -F flag).  You could
execute
  % /sbin/m5 checkpoint 10000000000
to take a checkpoint where you are trying to switch cpus.  Then simply
restore the simulation with the --timing flag specified and indicate which
checkpoint to restore from with the -r option.  The stats will start from 0
at the beginning of the restored simulation.

  Hope this helps,
  Joel

-- 
  Joel Hestness
  PhD Student, Computer Architecture
  Dept. of Computer Science, University of Texas - Austin
  http://www.cs.utexas.edu/~hestness
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to