xref: /openbmc/qemu/linux-user/ppc/target_elf.h (revision c4107e82)
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 PPC_TARGET_ELF_H
9542ca434SLaurent Vivier #define PPC_TARGET_ELF_H
cpu_get_model(uint32_t eflags)10542ca434SLaurent Vivier static inline const char *cpu_get_model(uint32_t eflags)
11542ca434SLaurent Vivier {
12542ca434SLaurent Vivier #ifdef TARGET_PPC64
13*b50d1e42SLaurent Vivier     return "POWER9";
14542ca434SLaurent Vivier #else
15542ca434SLaurent Vivier     return "750";
16542ca434SLaurent Vivier #endif
17542ca434SLaurent Vivier }
18542ca434SLaurent Vivier #endif
19