Add stub for x86 process creation
--HG-- extra : convert_revision : 3bdbc415a73c6bb4d723f68714a96c9f922ba5e6
This commit is contained in:
parent
d539052b63
commit
82235b8240
1 changed files with 16 additions and 0 deletions
|
@ -60,6 +60,8 @@
|
||||||
#include "arch/sparc/solaris/process.hh"
|
#include "arch/sparc/solaris/process.hh"
|
||||||
#elif THE_ISA == MIPS_ISA
|
#elif THE_ISA == MIPS_ISA
|
||||||
#include "arch/mips/linux/process.hh"
|
#include "arch/mips/linux/process.hh"
|
||||||
|
#elif THE_ISA == X86_ISA
|
||||||
|
//XXX There are no x86 processes yet
|
||||||
#else
|
#else
|
||||||
#error "THE_ISA not set"
|
#error "THE_ISA not set"
|
||||||
#endif
|
#endif
|
||||||
|
@ -486,6 +488,20 @@ LiveProcess::create(const std::string &nm, System *system, int stdin_fd,
|
||||||
default:
|
default:
|
||||||
fatal("Unknown/unsupported operating system.");
|
fatal("Unknown/unsupported operating system.");
|
||||||
}
|
}
|
||||||
|
#elif THE_ISA == X86_ISA
|
||||||
|
if (objFile->getArch() != ObjectFile::X86)
|
||||||
|
fatal("Object file architecture does not match compiled ISA (SPARC).");
|
||||||
|
panic("There are no implemented x86 processes!\n");
|
||||||
|
switch (objFile->getOpSys()) {
|
||||||
|
/*case ObjectFile::Linux:
|
||||||
|
process = new X86LinuxProcess(nm, objFile, system,
|
||||||
|
stdin_fd, stdout_fd, stderr_fd,
|
||||||
|
argv, envp, cwd,
|
||||||
|
_uid, _euid, _gid,
|
||||||
|
_egid, _pid, _ppid);*/
|
||||||
|
default:
|
||||||
|
fatal("Unknown/unsupported operating system.");
|
||||||
|
}
|
||||||
#elif THE_ISA == MIPS_ISA
|
#elif THE_ISA == MIPS_ISA
|
||||||
if (objFile->getArch() != ObjectFile::Mips)
|
if (objFile->getArch() != ObjectFile::Mips)
|
||||||
fatal("Object file architecture does not match compiled ISA (MIPS).");
|
fatal("Object file architecture does not match compiled ISA (MIPS).");
|
||||||
|
|
Loading…
Reference in a new issue