#include <string>
#include <vector>
+
+#include "mem/page_table.hh"
#include "sim/process.hh"
-class LiveProcess;
class ObjectFile;
-class System;
-class MipsLiveProcess : public LiveProcess
+class MipsProcess : public Process
{
protected:
- MipsLiveProcess(LiveProcessParams * params, ObjectFile *objFile);
+ MipsProcess(ProcessParams * params, ObjectFile *objFile);
- void startup();
+ void initState();
- void argsInit(int intSize, int pageSize);
+ template<class IntType>
+ void argsInit(int pageSize);
public:
- MipsISA::IntReg getSyscallArg(ThreadContext *tc, int &i);
- void setSyscallArg(ThreadContext *tc, int i, MipsISA::IntReg val);
+ RegVal getSyscallArg(ThreadContext *tc, int &i);
+ /// Explicitly import the otherwise hidden getSyscallArg
+ using Process::getSyscallArg;
+ void setSyscallArg(ThreadContext *tc, int i, RegVal val);
void setSyscallReturn(ThreadContext *tc, SyscallReturn return_value);
};
-
#endif // __MIPS_PROCESS_HH__