Hi,
I found out that resuming from a checkpoint in SE mode do not preserve the
exact state of the system/application. Example:
fprintf(stderr, "Taking checkpoint...\n");
char buff[500];
chdir("/mnt"); //changing cwd of process
m5_checkpoint(0,0);
fprintf(stderr, "CWD after CP: %s\n", getcwd(buff, 500));
Upon resuming from the above checkpoint, the cwd is reset to gem5 base dir
rather than '/mnt'.
Similarly if we open a file descriptor to a file on disk before a
checkpoint. Then upon resuming, the open file descriptor no longer exists.
Is it the expected behavior?
Regards,
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users