process.cc (11705:d40bdd3c5778) process.cc (11723:0596db108c53)
1/*
2 * Copyright (c) 2014 Advanced Micro Devices, Inc.
3 * Copyright (c) 2012 ARM Limited
4 * All rights reserved
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating

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

77#include "arch/mips/linux/process.hh"
78#elif THE_ISA == ARM_ISA
79#include "arch/arm/linux/process.hh"
80#include "arch/arm/freebsd/process.hh"
81#elif THE_ISA == X86_ISA
82#include "arch/x86/linux/process.hh"
83#elif THE_ISA == POWER_ISA
84#include "arch/power/linux/process.hh"
1/*
2 * Copyright (c) 2014 Advanced Micro Devices, Inc.
3 * Copyright (c) 2012 ARM Limited
4 * All rights reserved
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating

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

77#include "arch/mips/linux/process.hh"
78#elif THE_ISA == ARM_ISA
79#include "arch/arm/linux/process.hh"
80#include "arch/arm/freebsd/process.hh"
81#elif THE_ISA == X86_ISA
82#include "arch/x86/linux/process.hh"
83#elif THE_ISA == POWER_ISA
84#include "arch/power/linux/process.hh"
85#elif THE_ISA == RISCV_ISA
86#include "arch/riscv/linux/process.hh"
85#else
86#error "THE_ISA not set"
87#endif
88
89
90using namespace std;
91using namespace TheISA;
92

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

699 // fall through
700 case ObjectFile::Linux:
701 process = new PowerLinuxProcess(params, objFile);
702 break;
703
704 default:
705 fatal("Unknown/unsupported operating system.");
706 }
87#else
88#error "THE_ISA not set"
89#endif
90
91
92using namespace std;
93using namespace TheISA;
94

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

701 // fall through
702 case ObjectFile::Linux:
703 process = new PowerLinuxProcess(params, objFile);
704 break;
705
706 default:
707 fatal("Unknown/unsupported operating system.");
708 }
709#elif THE_ISA == RISCV_ISA
710 if (objFile->getArch() != ObjectFile::Riscv)
711 fatal("Object file architecture does not match compiled ISA (RISCV).");
712 switch (objFile->getOpSys()) {
713 case ObjectFile::UnknownOpSys:
714 warn("Unknown operating system; assuming Linux.");
715 // fall through
716 case ObjectFile::Linux:
717 process = new RiscvLinuxProcess(params, objFile);
718 break;
719 default:
720 fatal("Unknown/unsupported operating system.");
721 }
707#else
708#error "THE_ISA not set"
709#endif
710
711 if (process == NULL)
712 fatal("Unknown error creating process object.");
713 return process;
714}
715
716LiveProcess *
717LiveProcessParams::create()
718{
719 return LiveProcess::create(this);
720}
722#else
723#error "THE_ISA not set"
724#endif
725
726 if (process == NULL)
727 fatal("Unknown error creating process object.");
728 return process;
729}
730
731LiveProcess *
732LiveProcessParams::create()
733{
734 return LiveProcess::create(this);
735}