summaryrefslogtreecommitdiff
path: root/arch/alpha/process.hh
diff options
context:
space:
mode:
authorKorey Sewell <ksewell@umich.edu>2006-03-15 23:38:55 -0500
committerKorey Sewell <ksewell@umich.edu>2006-03-15 23:38:55 -0500
commit77a2f97c3590d7d51ffc5b447546c7c70894bdbd (patch)
tree3463e457b10da0cea34cf20e914b2b51dc329d28 /arch/alpha/process.hh
parente2b558112b408847a1423e5dd12db59e81260c84 (diff)
parent7359e2df01fde9ea34a0ba661750a455e26bcacd (diff)
downloadgem5-77a2f97c3590d7d51ffc5b447546c7c70894bdbd.tar.xz
Merge zizzer:/bk/newmem
into zazzer.eecs.umich.edu:/.automount/zooks/y/ksewell/research/m5-sim/newmem-mips --HG-- extra : convert_revision : 9bdde9b5bd3049744451eda1134f080b7c4b1b59
Diffstat (limited to 'arch/alpha/process.hh')
-rw-r--r--arch/alpha/process.hh29
1 files changed, 22 insertions, 7 deletions
diff --git a/arch/alpha/process.hh b/arch/alpha/process.hh
index 6d6585175..d97b36e2d 100644
--- a/arch/alpha/process.hh
+++ b/arch/alpha/process.hh
@@ -31,19 +31,34 @@
#include <string>
#include <vector>
+#include "sim/process.hh"
-class LiveProcess;
class ObjectFile;
class System;
-namespace AlphaISA
+
+class AlphaLiveProcess : public LiveProcess
{
+ protected:
+ AlphaLiveProcess(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);
+
+ void startup();
+
+ public:
+ // this function is used to create the LiveProcess object, since
+ // we can't tell which subclass of LiveProcess to use until we
+ // open and look at the object file.
+ static AlphaLiveProcess *create(const std::string &nm,
+ System *_system,
+ int stdin_fd, int stdout_fd, int stderr_fd,
+ std::string executable,
+ std::vector<std::string> &argv,
+ std::vector<std::string> &envp);
-LiveProcess *
-createProcess(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);
+};
-} // namespace AlphaISA
#endif // __ALPHA_PROCESS_HH__