process.cc (14138:4d94d8df94aa) process.cc (14139:0ea736dea1ff)
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

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

524 auto absolute_path = path_base + filename;
525
526 return absolute_path;
527}
528
529Process *
530ProcessParams::create()
531{
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

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

524 auto absolute_path = path_base + filename;
525
526 return absolute_path;
527}
528
529Process *
530ProcessParams::create()
531{
532 Process *process = nullptr;
533
534 // If not specified, set the executable parameter equal to the
535 // simulated system's zeroth command line parameter
536 if (executable == "") {
537 executable = cmd[0];
538 }
539
540 ObjectFile *obj_file = createObjectFile(executable);
532 // If not specified, set the executable parameter equal to the
533 // simulated system's zeroth command line parameter
534 if (executable == "") {
535 executable = cmd[0];
536 }
537
538 ObjectFile *obj_file = createObjectFile(executable);
541 fatal_if(!obj_file, "Can't load object file %s", executable);
539 fatal_if(!obj_file, "Cannot load object file %s.", executable);
542
540
543 process = ObjectFile::tryLoaders(this, obj_file);
541 Process *process = ObjectFile::tryLoaders(this, obj_file);
544 fatal_if(!process, "Unknown error creating process object.");
545
546 return process;
547}
542 fatal_if(!process, "Unknown error creating process object.");
543
544 return process;
545}