You should be able to create an event to do it for you and add it to the 
PCEvent queue. You could either just do it in C++ buy adding a parameter to the 
cpu model or expose the pc event queue to python so it can set exit events like 
gets done initially for the max_inst_any_thread. 

Ali





On Nov 17, 2010, at 6:50 PM, Stevenson Jian wrote:

> Hi,
> I want to get some statistics at the end of every N number of instructions 
> not N number of ticks. Does anyone already know how to go about doing this? I 
> tried to set the max_inst_any_thread field for the testsys.cpus in the Python 
> script, but it turns out this only causes M5.simulate() to exit once. When I 
> resume M5.simulate() again, it will no longer respond to whatever I set for 
> max_inst_any_thread. Would the progress_interval field for the cpu classes 
> work? How do I catch a progress_interval event when it happens? Are there 
> other ideas?
> Thanks,
> Steve
> _______________________________________________
> 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

Reply via email to