process.cc (9641:2285b98847d7) | process.cc (10037:5cac77888310) |
---|---|
1/* 2 * Copyright (c) 2012 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 681 unchanged lines hidden (view full) --- 690 case ObjectFile::Linux: 691 process = new MipsLinuxProcess(params, objFile); 692 break; 693 694 default: 695 fatal("Unknown/unsupported operating system."); 696 } 697#elif THE_ISA == ARM_ISA | 1/* 2 * Copyright (c) 2012 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 681 unchanged lines hidden (view full) --- 690 case ObjectFile::Linux: 691 process = new MipsLinuxProcess(params, objFile); 692 break; 693 694 default: 695 fatal("Unknown/unsupported operating system."); 696 } 697#elif THE_ISA == ARM_ISA |
698 if (objFile->getArch() != ObjectFile::Arm && 699 objFile->getArch() != ObjectFile::Thumb) | 698 ObjectFile::Arch arch = objFile->getArch(); 699 if (arch != ObjectFile::Arm && arch != ObjectFile::Thumb && 700 arch != ObjectFile::Arm64) |
700 fatal("Object file architecture does not match compiled ISA (ARM)."); 701 switch (objFile->getOpSys()) { 702 case ObjectFile::UnknownOpSys: 703 warn("Unknown operating system; assuming Linux."); 704 // fall through 705 case ObjectFile::Linux: | 701 fatal("Object file architecture does not match compiled ISA (ARM)."); 702 switch (objFile->getOpSys()) { 703 case ObjectFile::UnknownOpSys: 704 warn("Unknown operating system; assuming Linux."); 705 // fall through 706 case ObjectFile::Linux: |
706 process = new ArmLinuxProcess(params, objFile, objFile->getArch()); | 707 if (arch == ObjectFile::Arm64) { 708 process = new ArmLinuxProcess64(params, objFile, 709 objFile->getArch()); 710 } else { 711 process = new ArmLinuxProcess32(params, objFile, 712 objFile->getArch()); 713 } |
707 break; 708 case ObjectFile::LinuxArmOABI: 709 fatal("M5 does not support ARM OABI binaries. Please recompile with an" 710 " EABI compiler."); 711 default: 712 fatal("Unknown/unsupported operating system."); 713 } 714#elif THE_ISA == POWER_ISA --- 27 unchanged lines hidden --- | 714 break; 715 case ObjectFile::LinuxArmOABI: 716 fatal("M5 does not support ARM OABI binaries. Please recompile with an" 717 " EABI compiler."); 718 default: 719 fatal("Unknown/unsupported operating system."); 720 } 721#elif THE_ISA == POWER_ISA --- 27 unchanged lines hidden --- |