Hi Ali,
Since I am catching a deadline, so i don't dig too much to fix this.
Instead, I use the '-m' (maximum tick number) to bypass it. I will try
to fix it a little later and submit it to the review board.
Tao
On 04/08/2012 08:08 PM, Ali Saidi wrote:
Could you create a patch that fixes the problem and put it on the review board?
reviews.gem5.org?
Thanks,
Ali
On Apr 8, 2012, at 7:31 PM, Tao Zhang wrote:
Dear all,
I found that the option "--maxtime (# of second in float)" didn't work once i
tried to use it to terminate the simulation. When I check Simulatoion.py, the following
codes have problem: 1) options.maxtick has default value that make the 'if' evaluation
always true. No way to go through (elif). 2) the m5.ticks has no attribute 'seconds' and
the code in 'elif' looks weird. Is there anyone successfully use this option?
if options.maxtick:
maxtick = options.maxtick
elif options.maxtime:
simtime = m5.ticks.seconds(simtime)
print "simulating for: ", simtime
maxtick = simtime
else:
maxtick = m5.MaxTick
Regards,
Tao
--
**********************************
Tao Zhang
Department of Computer Science& Engineering,
College of Engineering, Pennsylvania State University
354B IST Building
University Park, PA 16802
(Office) 814-863-1047
(Mobile) 814-321-4826
Homepage: www.cse.psu.edu/~tzz106
**********************************
("`-''-/").___..--''"`-._
`6_ 6 ) `-. ( ).`-.__.`) GO LIONS!!!
(_Y_.)' ._ ) `._ `. ``-..-'
_..`--'_..-_/ /--'_.' ,'
(il),-'' (li),' ((!.-'
Happiness is like a butterfly which, when pursued, is always beyond your grasp,
but if you will sit down quietly, may alight upon you.
--- Nathaniel Hawthorne
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users