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:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user