If you want to have your binary create a checkpoint automatically you should 
link it with m5op_<arch>.S and then call m5_checkpoint(1,0) which will create a 
checkpoint immediately, and not repeat the creation.

The checkpoint will be output to the current output directory for me.

http://www.m5sim.org/wiki/index.php/Running_M5#Restoring

Ali

On Apr 30, 2011, at 1:20 AM, Mahmood Naderan wrote:

> Hi,
> I want to insert a m5ops in the source code before and after the ROI.
> Couple of questions:
> 
> 1- according to m5ops.h
> #define ckpt_func               0x43
> 
> So is this correct in main.cpp
> #include "m5ops.h"
> ...
> read_input
> ckpt_func;
> ROI
> ckpt_func;
> write_output
> 
> 2- where is path for saving the chckpoint defined?
> 
> 3- how can I restore from checkpoint.
> 
> FAQ says nothing about chekpoint and
> http://m5sim.org/wiki/index.php/M5ops contains the definitions only.
> The only thing I found in the archive is
> http://permalink.gmane.org/gmane.comp.emulators.m5.users/6336 but I
> didn't conclude anything.
> 
> Thanks for any comment.
> 
> -- 
> // Naderan *Mahmood;
> _______________________________________________
> 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