diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2006-03-12 16:27:52 -0500 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2006-03-12 16:27:52 -0500 |
commit | 159cee171976019badb17336eff5b69df3c89528 (patch) | |
tree | 186f575cc382dd832113b6934af0693d1a3ca4ab /arch/sparc | |
parent | e1985e02007f2e34d6e62c66ba417e6e9f3a1316 (diff) | |
download | gem5-159cee171976019badb17336eff5b69df3c89528.tar.xz |
Clean up arch/*/process.hh includes and std namespace issues.
arch/alpha/process.cc:
arch/mips/process.cc:
arch/sparc/process.cc:
You really do need the headers in the .cc file.
arch/alpha/process.hh:
Don't include unnecessary headers in another header.
Replace with forward class declarations.
arch/mips/process.hh:
arch/sparc/process.hh:
Don't include unnecessary headers in another header.
Replace with forward class declarations.
Also fix std namespace... no "using" in header files!
--HG--
extra : convert_revision : f2cd953d0f4a212bb8148cc54c329aa3c18deb89
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/process.cc | 3 | ||||
-rw-r--r-- | arch/sparc/process.hh | 14 |
2 files changed, 12 insertions, 5 deletions
diff --git a/arch/sparc/process.cc b/arch/sparc/process.cc index 53a215379..2c10f65e6 100644 --- a/arch/sparc/process.cc +++ b/arch/sparc/process.cc @@ -27,6 +27,9 @@ */ #include "arch/sparc/process.hh" +#include "arch/sparc/linux/process.hh" +#include "base/loader/object_file.hh" +#include "base/misc.hh" namespace SparcISA { diff --git a/arch/sparc/process.hh b/arch/sparc/process.hh index 48041a316..e0bba3497 100644 --- a/arch/sparc/process.hh +++ b/arch/sparc/process.hh @@ -29,16 +29,20 @@ #ifndef __SPARC_PROCESS_HH__ #define __SPARC_PROCESS_HH__ -#include "arch/sparc/linux/process.hh" -#include "base/loader/object_file.hh" +#include <string> +#include <vector> + +class LiveProcess; +class ObjectFile; +class System; namespace SparcISA { LiveProcess * -createProcess(const string &nm, ObjectFile * objFile, - int stdin_fd, int stdout_fd, int stderr_fd, - vector<string> &argv, vector<string> &envp); +createProcess(const std::string &nm, ObjectFile * objFile, + int stdin_fd, int stdout_fd, int stderr_fd, + std::vector<std::string> &argv, std::vector<std::string> &envp); } // namespace SparcISA |