1/* 2 * Copyright (c) 2011-2013 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 --- 97 unchanged lines hidden (view full) --- 106 ehdr.e_ident[EI_CLASS] == ELFCLASS32) { 107 arch = I386; 108 } else if (ehdr.e_machine == EM_ARM && 109 ehdr.e_ident[EI_CLASS] == ELFCLASS32) { 110 arch = bits(ehdr.e_entry, 0) ? Thumb : Arm; 111 } else if (ehdr.e_machine == EM_AARCH64 && 112 ehdr.e_ident[EI_CLASS] == ELFCLASS64) { 113 arch = Arm64; |
114 } else if (ehdr.e_machine == EM_RISCV) { 115 arch = Riscv; |
116 } else if (ehdr.e_machine == EM_PPC && 117 ehdr.e_ident[EI_CLASS] == ELFCLASS32) { 118 arch = Power; 119 if (ehdr.e_ident[EI_DATA] != ELFDATA2MSB) { 120 fatal("The binary you're trying to load is compiled for " 121 "little endian Power.\ngem5 only supports big " 122 "endian Power. Please recompile your binary.\n"); 123 } --- 452 unchanged lines hidden --- |