arch: Make and use endian specific versions of the mem helpers.
[gem5.git] / src / arch / mips / process.hh
index f35ec8554255635c358ecbd23d5c1df7a00db054..a607bd285732c9f1c07fee0751ae045b24f08042 100644 (file)
 
 #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);
 
-    void startup();
+    void initState();
 
-    void argsInit(int intSize, int pageSize);
+    template<class IntType>
+    void argsInit(int pageSize);
 
   public:
-    MipsISA::IntReg getSyscallArg(ThreadContext *tc, int &i);
-    void setSyscallArg(ThreadContext *tc, int i, MipsISA::IntReg val);
+    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__