diff --git a/src/core/sal/gem5/Gem5Controller.cc b/src/core/sal/gem5/Gem5Controller.cc index 11e58403..b01d9b3d 100644 --- a/src/core/sal/gem5/Gem5Controller.cc +++ b/src/core/sal/gem5/Gem5Controller.cc @@ -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;