gem5: The serializeAll(path) method don't have to be invoked on the root object.

The checkpoint which is produced by this save method is a little bit
different to the checkpoint which is produced by the --take-checkpoint
command. It differs in the save-parameters so_state, funcExeInst, intRegs,
_upc, _nupc, _when. Tests have shown that it probably does not affect the
course of the program execution.

Change-Id: Id776a10f2d40f71643e9edbb45d7368609309df4
This commit is contained in:
Richard Hellwig
2013-05-23 18:03:57 +02:00
parent 503a40be7b
commit 043e264677

View File

@ -40,8 +40,7 @@ bool Gem5Controller::save(const std::string &path)
{
DPRINTF(FailState, "Saving state to %s.\n", path);
Root* root = Root::root();
root->Serializable::serializeAll(path);
Serializable::serializeAll(path);
// Test if save was successful
std::ifstream save_test;