Deleted Added
sdiff udiff text old ( 13981:577196ddd040 ) new ( 13990:828a9dfb6bd0 )
full compact
1/*
2 * Copyright (c) 2014-2016 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

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

67#include "params/Process.hh"
68#include "sim/emul_driver.hh"
69#include "sim/fd_array.hh"
70#include "sim/fd_entry.hh"
71#include "sim/redirect_path.hh"
72#include "sim/syscall_desc.hh"
73#include "sim/system.hh"
74
75using namespace std;
76using namespace TheISA;
77
78static std::string
79normalize(std::string& directory)
80{
81 if (directory.back() != '/')
82 directory += '/';

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

530
531 // If not specified, set the executable parameter equal to the
532 // simulated system's zeroth command line parameter
533 if (executable == "") {
534 executable = cmd[0];
535 }
536
537 ObjectFile *obj_file = createObjectFile(executable);
538 fatal_if(!obj_file, "Can't load object file %s", executable);
539
540 process = ObjectFile::tryLoaders(this, obj_file);
541 fatal_if(!process, "Unknown error creating process object.");
542
543 return process;
544}