process.cc (7095:f7bb2d93cc49) process.cc (7096:e81026b9dfe0)
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;

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

758 if (objFile->getArch() != ObjectFile::Arm &&
759 objFile->getArch() != ObjectFile::Thumb)
760 fatal("Object file architecture does not match compiled ISA (ARM).");
761 switch (objFile->getOpSys()) {
762 case ObjectFile::UnknownOpSys:
763 warn("Unknown operating system; assuming Linux.");
764 // fall through
765 case ObjectFile::Linux:
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;

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

758 if (objFile->getArch() != ObjectFile::Arm &&
759 objFile->getArch() != ObjectFile::Thumb)
760 fatal("Object file architecture does not match compiled ISA (ARM).");
761 switch (objFile->getOpSys()) {
762 case ObjectFile::UnknownOpSys:
763 warn("Unknown operating system; assuming Linux.");
764 // fall through
765 case ObjectFile::Linux:
766 if (objFile->getArch() == ObjectFile::Thumb)
767 panic("Thumb processes not yet supported.\n");
768 else
769 process = new ArmLinuxProcess(params, objFile);
766 process = new ArmLinuxProcess(params, objFile, objFile->getArch());
770 break;
771 case ObjectFile::LinuxArmOABI:
772 fatal("M5 does not support ARM OABI binaries. Please recompile with an"
773 " EABI compiler.");
774 default:
775 fatal("Unknown/unsupported operating system.");
776 }
777#elif THE_ISA == POWER_ISA

--- 28 unchanged lines hidden ---
767 break;
768 case ObjectFile::LinuxArmOABI:
769 fatal("M5 does not support ARM OABI binaries. Please recompile with an"
770 " EABI compiler.");
771 default:
772 fatal("Unknown/unsupported operating system.");
773 }
774#elif THE_ISA == POWER_ISA

--- 28 unchanged lines hidden ---