arch: Make and use endian specific versions of the mem helpers.
[gem5.git] / src / arch / mips / process.hh
index a6e661e231b5a1a17e23183e20fb124ac0843018..a607bd285732c9f1c07fee0751ae045b24f08042 100644 (file)
@@ -27,7 +27,6 @@
  *
  * Authors: Gabe Black
  *          Ali Saidi
- *          Korey Sewell
  */
 
 #ifndef __MIPS_PROCESS_HH__
 
 #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);
 
-    virtual void startup();
+    void initState();
 
-};
+    template<class IntType>
+    void argsInit(int pageSize);
 
+  public:
+    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__