syscall emulation: Enabled getrlimit and getrusage for x86.
[gem5.git] / src / arch / mips / process.hh
index a6e661e231b5a1a17e23183e20fb124ac0843018..3f9a7aff0326fc3513966cb4dda6fc7553b232bd 100644 (file)
@@ -27,7 +27,6 @@
  *
  * Authors: Gabe Black
  *          Ali Saidi
- *          Korey Sewell
  */
 
 #ifndef __MIPS_PROCESS_HH__
@@ -35,6 +34,7 @@
 
 #include <string>
 #include <vector>
+
 #include "sim/process.hh"
 
 class LiveProcess;
@@ -46,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);
 };