SimCon interface update: save returns a boolean, now (+ redundant virtual keywords removed).

git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1724 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
adrian
2012-10-05 12:12:56 +00:00
parent 37f030b9a3
commit 171d178309
8 changed files with 25 additions and 16 deletions

View File

@ -10,7 +10,7 @@
namespace fail {
void Gem5Controller::save(const std::string &path)
bool Gem5Controller::save(const std::string &path)
{
// Takes a snapshot in the m5out dir
Tick when = curTick() + 1;
@ -22,6 +22,7 @@ void Gem5Controller::save(const std::string &path)
std::ofstream file(path.c_str());
root->serialize(file);
file.close();*/
return false; // TODO
}
void Gem5Controller::restore(const std::string &path)

View File

@ -11,9 +11,9 @@ class Gem5Controller : public SimulatorController {
public:
void onBreakpoint(address_t instrPtr, address_t address_space);
virtual void save(const std::string &path);
virtual void restore(const std::string &path);
virtual void reboot();
bool save(const std::string &path);
void restore(const std::string &path);
void reboot();
};
} // end-of-namespace: fail