Hi all,

I have some problems about creating checkpoint. I want to take the checkpoint from the source code (queens.c). I have added #include “util/m5/m5op.h” into the source code and I put m5_checkpoint(0,0) and m5_dumpreset_stats(0,0) statements at the ROI (as shown in gem5 hipeac 2012 presentation).

I compile it with the following command without any error:

 gcc -o queens-w-chkpt queens.c -I ../util/m5 ../util/m5/m5op_x86.S --static

And run it with the following command:

 build/X86/gem5.opt configs/example/se.py -c my-codes/queens-w-chkpt -o 4

However it does not take any checkpoint and continues to execute as if it has not any checkpoint command.

Do you have any idea about this?

Thank you in advance for your time and help.

Best Regards,
Sanem.

Alinti Ali Saidi <[email protected]>

Hi Peng,
It looks like you’re creating a checkpoint and then existing. The script that you are using is read into the simulated filesystem early on, so even if you changed it after you restored the simulation, you’re not getting what you expect. The script has already been loaded and the exit is already there. Rather than putting an exit how about —max-checkpoints=1?

Ali



On Dec 30, 2013, at 6:02 AM, Peng Wei <[email protected]> wrote:

Hi there,

I tried to create a checkpoint in gem5 ARM full system mode, but it had been created successfully but cannot be used correctly.

I used default CPU mode, 4 core, no caches, and use an .rCS file like this:

sleep 600
/sbin/m5 checkpoint
/sbin/m5 exit

I would like to wait 10 minutes to let the system fully booted and then create checkpoint and close m5.

However, when I tried to restore the system from that checkpoint, it always was finished in several seconds and showed that "exit due to m5_exit instruction received" no matter which CPU mode or which rCS file I used.

Could anybody help me fix it? I suspend that it is likely that my script used to create the checkpoint was problematic, but it is so easy that I don't know what is the problem.

Thanks very much.


_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users


_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to