Deleted Added
sdiff udiff text old ( 11705:d40bdd3c5778 ) new ( 11723:0596db108c53 )
full compact
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"
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 }
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}