xref: /qemu/linux-user/mips/target_elf.h (revision 76277cf82f0e1123bd69ec59d22014b8f78485ec)
1542ca434SLaurent Vivier /*
2542ca434SLaurent Vivier  * This program is free software; you can redistribute it and/or modify
3542ca434SLaurent Vivier  * it under the terms of the GNU General Public License version 2 as
4542ca434SLaurent Vivier  * published by the Free Software Foundation, or (at your option) any
5542ca434SLaurent Vivier  * later version. See the COPYING file in the top-level directory.
6542ca434SLaurent Vivier  */
7542ca434SLaurent Vivier 
8542ca434SLaurent Vivier #ifndef MIPS_TARGET_ELF_H
9542ca434SLaurent Vivier #define MIPS_TARGET_ELF_H
cpu_get_model(uint32_t eflags)10542ca434SLaurent Vivier static inline const char *cpu_get_model(uint32_t eflags)
11542ca434SLaurent Vivier {
1245506bddSYunQiang Su     if ((eflags & EF_MIPS_ARCH) == EF_MIPS_ARCH_32R6) {
1345506bddSYunQiang Su         return "mips32r6-generic";
1445506bddSYunQiang Su     }
15*450cb7ecSPhilippe Mathieu-Daudé     if (eflags & EF_MIPS_NAN2008) {
16*450cb7ecSPhilippe Mathieu-Daudé         return "P5600";
17*450cb7ecSPhilippe Mathieu-Daudé     }
18542ca434SLaurent Vivier     return "24Kf";
19542ca434SLaurent Vivier }
20542ca434SLaurent Vivier #endif
21