Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / linux-user / mips64 / target_elf.h
blob502af9d2781d57b877290ba63571766297e7607d
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 */
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:
16 return "Octeon68XX";
17 case EF_MIPS_MACH_LS2E:
18 return "Loongson-2E";
19 case EF_MIPS_MACH_LS2F:
20 return "Loongson-2F";
21 case EF_MIPS_MACH_LS3A:
22 return "Loongson-3A1000";
23 default:
24 break;
26 switch (eflags & EF_MIPS_ARCH) {
27 case EF_MIPS_ARCH_64R6:
28 return "I6400";
29 case EF_MIPS_ARCH_64R2:
30 return "MIPS64R2-generic";
31 default:
32 break;
34 return "5KEf";
36 #endif