process.cc (6227:a17798f2a52c) process.cc (6392:9345de6fca33)
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;

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

743 fatal("Object file architecture does not match compiled ISA (ARM).");
744 switch (objFile->getOpSys()) {
745 case ObjectFile::UnknownOpSys:
746 warn("Unknown operating system; assuming Linux.");
747 // fall through
748 case ObjectFile::Linux:
749 process = new ArmLinuxProcess(params, objFile);
750 break;
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;

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

743 fatal("Object file architecture does not match compiled ISA (ARM).");
744 switch (objFile->getOpSys()) {
745 case ObjectFile::UnknownOpSys:
746 warn("Unknown operating system; assuming Linux.");
747 // fall through
748 case ObjectFile::Linux:
749 process = new ArmLinuxProcess(params, objFile);
750 break;
751
751 case ObjectFile::LinuxArmOABI:
752 fatal("M5 does not support ARM OABI binaries. Please recompile with an"
753 " EABI compiler.");
752 default:
753 fatal("Unknown/unsupported operating system.");
754 }
755#else
756#error "THE_ISA not set"
757#endif
758
759
760 if (process == NULL)
761 fatal("Unknown error creating process object.");
762 return process;
763}
764
765LiveProcess *
766LiveProcessParams::create()
767{
768 return LiveProcess::create(this);
769}
754 default:
755 fatal("Unknown/unsupported operating system.");
756 }
757#else
758#error "THE_ISA not set"
759#endif
760
761
762 if (process == NULL)
763 fatal("Unknown error creating process object.");
764 return process;
765}
766
767LiveProcess *
768LiveProcessParams::create()
769{
770 return LiveProcess::create(this);
771}