1 /* 2 * This program is free software; you can redistribute it and/or modify 3 * it under the terms of the GNU General Public License version 2 as 4 * published by the Free Software Foundation, or (at your option) any 5 * later version. See the COPYING file in the top-level directory. 6 */ 7 8 #ifndef MIPS_TARGET_ELF_H 9 #define MIPS_TARGET_ELF_H 10 static inline const char *cpu_get_model(uint32_t eflags) 11 { 12 if ((eflags & EF_MIPS_ARCH) == EF_MIPS_ARCH_32R6) { 13 return "mips32r6-generic"; 14 } 15 if ((eflags & EF_MIPS_ARCH_ASE) == EF_MIPS_ARCH_ASE_MICROMIPS) { 16 return "M14Kc"; 17 } 18 if ((eflags & EF_MIPS_ARCH_ASE) == EF_MIPS_ARCH_ASE_M16) { 19 return "74Kf"; 20 } 21 if (eflags & EF_MIPS_NAN2008) { 22 return "P5600"; 23 } 24 return "24Kf"; 25 } 26 #endif 27