gem5
v20.1.0.0
|
Each instance of a Loader subclass will have a chance to try to load an object file when tryLoaders is called. More...
#include <process.hh>
Public Member Functions | |
Loader () | |
Loader (const Loader &)=delete | |
void | operator= (const Loader &)=delete |
virtual | ~Loader () |
virtual Process * | load (ProcessParams *params, ::Loader::ObjectFile *obj_file)=0 |
Each subclass needs to implement this method. More... | |
Each instance of a Loader subclass will have a chance to try to load an object file when tryLoaders is called.
If they can't because they aren't compatible with it (wrong arch, wrong OS, etc), then they silently fail by returning nullptr so other loaders can try.
Definition at line 185 of file process.hh.
Process::Loader::Loader | ( | ) |
Definition at line 87 of file process.cc.
|
delete |
|
inlinevirtual |
Definition at line 194 of file process.hh.
|
pure virtual |
Each subclass needs to implement this method.
If the loader is compatible with the passed in object file, it should return the created Process object corresponding to it. If not, it should fail silently and return nullptr. If there's a non-compatibliity related error like file IO errors, etc., those should fail non-silently with a panic or fail as normal.
|
delete |