process.cc (4157:96f036a83480) process.cc (4166:ecebe3ac19b4)
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;

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

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
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;

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

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
64#include "arch/x86/linux/process.hh"
65#else
66#error "THE_ISA not set"
67#endif
68
69
70using namespace std;
71using namespace TheISA;
72

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

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)
65#else
66#error "THE_ISA not set"
67#endif
68
69
70using namespace std;
71using namespace TheISA;
72

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

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");
493 fatal("Object file architecture does not match compiled ISA (x86).");
495 switch (objFile->getOpSys()) {
494 switch (objFile->getOpSys()) {
496 /*case ObjectFile::Linux:
495 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,
496 process = new X86LinuxProcess(nm, objFile, system,
497 stdin_fd, stdout_fd, stderr_fd,
498 argv, envp, cwd,
499 _uid, _euid, _gid,
501 _egid, _pid, _ppid);*/
500 _egid, _pid, _ppid);
501 break;
502 default:
503 fatal("Unknown/unsupported operating system.");
504 }
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:

--- 89 unchanged lines hidden ---
502 default:
503 fatal("Unknown/unsupported operating system.");
504 }
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:

--- 89 unchanged lines hidden ---