mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-27 05:20:50 +00:00
4d9e5a0eb7
This kind of ELF for the R5900 relies on an IEEE 754-1985 compliant FPU. The R5900 FPU hardware is noncompliant and it is therefore emulated in software by the Linux kernel. QEMU emulates a compliant FPU accordingly. Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Aleksandar Markovic <amarkovic@wavecomp.com> Signed-off-by: Fredrik Noring <noring@nocrew.org> Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
21 lines
608 B
C
21 lines
608 B
C
/*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation, or (at your option) any
|
|
* later version. See the COPYING file in the top-level directory.
|
|
*/
|
|
|
|
#ifndef MIPS_TARGET_ELF_H
|
|
#define MIPS_TARGET_ELF_H
|
|
static inline const char *cpu_get_model(uint32_t eflags)
|
|
{
|
|
if ((eflags & EF_MIPS_ARCH) == EF_MIPS_ARCH_32R6) {
|
|
return "mips32r6-generic";
|
|
}
|
|
if ((eflags & EF_MIPS_MACH) == EF_MIPS_MACH_5900) {
|
|
return "R5900";
|
|
}
|
|
return "24Kf";
|
|
}
|
|
#endif
|