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.
8 #ifndef MIPS64_TARGET_ELF_H
9 #define MIPS64_TARGET_ELF_H
10 static inline const char *cpu_get_model(uint32_t eflags
)
12 switch (eflags
& EF_MIPS_MACH
) {
13 case EF_MIPS_MACH_OCTEON
:
14 case EF_MIPS_MACH_OCTEON2
:
15 case EF_MIPS_MACH_OCTEON3
:
17 case EF_MIPS_MACH_LS2E
:
19 case EF_MIPS_MACH_LS2F
:
21 case EF_MIPS_MACH_LS3A
:
22 return "Loongson-3A1000";
26 switch (eflags
& EF_MIPS_ARCH
) {
27 case EF_MIPS_ARCH_64R6
:
29 case EF_MIPS_ARCH_64R2
:
30 return "MIPS64R2-generic";