syscall emulation: Enabled getrlimit and getrusage for x86.
[gem5.git] / src / arch / mips / process.hh
index 18bf289b83f9cd2bd600f16aa29c250bc4d7e3ef..3f9a7aff0326fc3513966cb4dda6fc7553b232bd 100644 (file)
@@ -34,6 +34,7 @@
 
 #include <string>
 #include <vector>
+
 #include "sim/process.hh"
 
 class LiveProcess;
@@ -45,8 +46,15 @@ class MipsLiveProcess : public LiveProcess
   protected:
     MipsLiveProcess(LiveProcessParams * params, ObjectFile *objFile);
 
-    virtual void startup();
+    void initState();
+
+    template<class IntType>
+    void argsInit(int pageSize);
 
+  public:
+    MipsISA::IntReg getSyscallArg(ThreadContext *tc, int &i);
+    void setSyscallArg(ThreadContext *tc, int i, MipsISA::IntReg val);
+    void setSyscallReturn(ThreadContext *tc, SyscallReturn return_value);
 };