From 60735f254ecf3afdc779c48eaf6f2307fe1a2829 Mon Sep 17 00:00:00 2001 From: Richard Hellwig Date: Fri, 3 May 2013 16:03:45 +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: I19b3fc809288224532e0ed6b7910a45115cb1c5d --- 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 b00a8d99..67b64265 100644 --- a/src/core/sal/gem5/Gem5Controller.cc +++ b/src/core/sal/gem5/Gem5Controller.cc @@ -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; }