OVP: save/restore registers using protocol buffer

git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1206 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
sirozipp
2012-05-05 07:57:43 +00:00
parent 238aafde3e
commit 084ff6eb99
10 changed files with 120 additions and 5 deletions

View File

@ -86,10 +86,22 @@ class OVPCpu {
*/
virtual void makeCallbackMemory(size_t sizeText, size_t offText, size_t sizeMem, size_t offMem) = 0;
/**
* Saves cpu status in file at given path
* @param path path to store file
*/
virtual void save(const string& path) = 0;
/**
* Restore cpu status from file at given path
* @param path path to store file
*/
virtual void restore(const string& path) = 0;
/**
* Returns the private icmProcessorObject pointer needed for some OVP action
* @return icmProcessorObject
*/
icmProcessorObject *getProcessor() {
return cpu;
}