From 043e264677818839c5f9e5fc62f48ad84000a806 Mon Sep 17 00:00:00 2001 From: Richard Hellwig Date: Thu, 23 May 2013 18:03:57 +0200 Subject: [PATCH] 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 --- src/core/sal/gem5/Gem5Controller.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;