Restructured the gem5 backend:
- FailGem5Device is gone. - There are now changes directly made to the gem5 source. - Gem5Connector is a helper class that is compiled inside the gem5 context to workaround problems with gem5 header in fail. Things that are working: - BPSingleListener - MemAccessListener - Save and restore simulator state git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1820 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
20
src/core/sal/gem5/Gem5Connector.hpp
Normal file
20
src/core/sal/gem5/Gem5Connector.hpp
Normal file
@ -0,0 +1,20 @@
|
||||
#ifndef __GEM5_CONNECTOR_HPP__
|
||||
#define __GEM5_CONNECTOR_HPP__
|
||||
|
||||
#include <string>
|
||||
|
||||
/**
|
||||
* \class Gem5Connector
|
||||
* This class will be compiled inside the gem5 context and provides the
|
||||
* Gem5Controller a way to call gem5 functions.
|
||||
*/
|
||||
class Gem5Connector
|
||||
{
|
||||
public:
|
||||
void save(const std::string &path);
|
||||
void restore(const std::string &path);
|
||||
};
|
||||
|
||||
extern Gem5Connector connector;
|
||||
|
||||
#endif // __GEM5_CONNECTOR_HPP__
|
||||
Reference in New Issue
Block a user