syscall emulation: Enabled getrlimit and getrusage for x86.
[gem5.git] / src / arch / mips / process.hh
index 87c62330fb4ebc9309185e17c2f4331b1899460d..3f9a7aff0326fc3513966cb4dda6fc7553b232bd 100644 (file)
@@ -34,6 +34,7 @@
 
 #include <string>
 #include <vector>
+
 #include "sim/process.hh"
 
 class LiveProcess;
@@ -45,10 +46,13 @@ 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);
+    MipsISA::IntReg getSyscallArg(ThreadContext *tc, int &i);
     void setSyscallArg(ThreadContext *tc, int i, MipsISA::IntReg val);
     void setSyscallReturn(ThreadContext *tc, SyscallReturn return_value);
 };