syscall emulation: Enabled getrlimit and getrusage for x86.
[gem5.git] / src / arch / mips / process.hh
index af85e8ee9e7a92b24c081c87d1fc853b42e51cda..3f9a7aff0326fc3513966cb4dda6fc7553b232bd 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003-2004 The Regents of The University of Michigan
+ * Copyright (c) 2006 The Regents of The University of Michigan
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -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;
@@ -44,17 +44,17 @@ class System;
 class MipsLiveProcess : public LiveProcess
 {
   protected:
-    MipsLiveProcess(const std::string &nm, ObjectFile *objFile,
-                System *_system, int stdin_fd, int stdout_fd, int stderr_fd,
-                std::vector<std::string> &argv,
-                std::vector<std::string> &envp,
-                const std::string &cwd,
-                uint64_t _uid, uint64_t _euid,
-                uint64_t _gid, uint64_t _egid,
-                uint64_t _pid, uint64_t _ppid);
+    MipsLiveProcess(LiveProcessParams * params, ObjectFile *objFile);
+
+    void initState();
 
-    void startup();
+    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);
 };