process.cc (4117:2807cee7b892) process.cc (4157:96f036a83480)
1/*
2 * Copyright (c) 2001-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 46 unchanged lines hidden (view full) ---

55#if THE_ISA == ALPHA_ISA
56#include "arch/alpha/linux/process.hh"
57#include "arch/alpha/tru64/process.hh"
58#elif THE_ISA == SPARC_ISA
59#include "arch/sparc/linux/process.hh"
60#include "arch/sparc/solaris/process.hh"
61#elif THE_ISA == MIPS_ISA
62#include "arch/mips/linux/process.hh"
1/*
2 * Copyright (c) 2001-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 46 unchanged lines hidden (view full) ---

55#if THE_ISA == ALPHA_ISA
56#include "arch/alpha/linux/process.hh"
57#include "arch/alpha/tru64/process.hh"
58#elif THE_ISA == SPARC_ISA
59#include "arch/sparc/linux/process.hh"
60#include "arch/sparc/solaris/process.hh"
61#elif THE_ISA == MIPS_ISA
62#include "arch/mips/linux/process.hh"
63#elif THE_ISA == X86_ISA
64//XXX There are no x86 processes yet
63#else
64#error "THE_ISA not set"
65#endif
66
67
68using namespace std;
69using namespace TheISA;
70

--- 410 unchanged lines hidden (view full) ---

481 process = new SparcSolarisProcess(nm, objFile, system,
482 stdin_fd, stdout_fd, stderr_fd,
483 argv, envp, cwd,
484 _uid, _euid, _gid, _egid, _pid, _ppid);
485 break;
486 default:
487 fatal("Unknown/unsupported operating system.");
488 }
65#else
66#error "THE_ISA not set"
67#endif
68
69
70using namespace std;
71using namespace TheISA;
72

--- 410 unchanged lines hidden (view full) ---

483 process = new SparcSolarisProcess(nm, objFile, system,
484 stdin_fd, stdout_fd, stderr_fd,
485 argv, envp, cwd,
486 _uid, _euid, _gid, _egid, _pid, _ppid);
487 break;
488 default:
489 fatal("Unknown/unsupported operating system.");
490 }
491#elif THE_ISA == X86_ISA
492 if (objFile->getArch() != ObjectFile::X86)
493 fatal("Object file architecture does not match compiled ISA (SPARC).");
494 panic("There are no implemented x86 processes!\n");
495 switch (objFile->getOpSys()) {
496 /*case ObjectFile::Linux:
497 process = new X86LinuxProcess(nm, objFile, system,
498 stdin_fd, stdout_fd, stderr_fd,
499 argv, envp, cwd,
500 _uid, _euid, _gid,
501 _egid, _pid, _ppid);*/
502 default:
503 fatal("Unknown/unsupported operating system.");
504 }
489#elif THE_ISA == MIPS_ISA
490 if (objFile->getArch() != ObjectFile::Mips)
491 fatal("Object file architecture does not match compiled ISA (MIPS).");
492 switch (objFile->getOpSys()) {
493 case ObjectFile::Linux:
494 process = new MipsLinuxProcess(nm, objFile, system,
495 stdin_fd, stdout_fd, stderr_fd,
496 argv, envp, cwd,

--- 86 unchanged lines hidden ---
505#elif THE_ISA == MIPS_ISA
506 if (objFile->getArch() != ObjectFile::Mips)
507 fatal("Object file architecture does not match compiled ISA (MIPS).");
508 switch (objFile->getOpSys()) {
509 case ObjectFile::Linux:
510 process = new MipsLinuxProcess(nm, objFile, system,
511 stdin_fd, stdout_fd, stderr_fd,
512 argv, envp, cwd,

--- 86 unchanged lines hidden ---