Hi Pedro,
Thanks for taking the time to reply. 
You're right. The implementation was missing in my own python script. After 
including that, I am able to generate the checkpoint.

Thanks & Regards
Sindhuja

-----Original Message-----
From: Pedro Becker via gem5-users <[email protected]> 
Sent: Thursday, September 2, 2021 3:57 AM
To: [email protected]
Cc: Pedro Becker <[email protected]>
Subject: [gem5-users] Re: Issue: Checkpoint in FS mode

Hi Sindhuja, 

Are you using your own python script to configure the simulation? 

If I'm not mistaken calling the /sbin/m5 checkpoint exits the m5.simulate() 
(from the script), returning the exit_event (a string "checkpoint"). 
Then, your python script should capture that exit_event and create the 
checkpoint. This is done in the default scripts (e.g., fs.py/Simulation.py) 
with something like this:

exit_event = m5.simulate()
exit_cause = exit_event.getCause()
while exit_event == "checkpoint":
    m5.checkpoint(joinpath(cptdir, "cpt.%d"))
    exit_event = m5.simulate()
    exit_cause = exit_event.getCause()

But if you have your own python script, then you have to implement this 
behavior yourself.

Best,
Pedro.
_______________________________________________
gem5-users mailing list -- [email protected] To unsubscribe send an email to 
[email protected] %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
_______________________________________________
gem5-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to