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: I19b3fc809288224532e0ed6b7910a45115cb1c5d
This commit is contained in:
Richard Hellwig
2013-05-03 16:03:45 +02:00
parent d525005990
commit 60735f254e

View File

@ -41,8 +41,7 @@ void 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);
return true;
}