summaryrefslogtreecommitdiffstats
path: root/linux-user/mips
diff options
context:
space:
mode:
authorFredrik Noring2018-10-21 17:44:58 +0200
committerAleksandar Markovic2018-10-24 15:20:31 +0200
commit4d9e5a0eb7df6e98ac6cf5e16029f35dd05b9537 (patch)
treea6041cf3af812019472534e95b0a279f31b715ec /linux-user/mips
parenttarget/mips: Define the R5900 CPU (diff)
downloadqemu-4d9e5a0eb7df6e98ac6cf5e16029f35dd05b9537.tar.gz
qemu-4d9e5a0eb7df6e98ac6cf5e16029f35dd05b9537.tar.xz
qemu-4d9e5a0eb7df6e98ac6cf5e16029f35dd05b9537.zip
linux-user/mips: Recognize the R5900 CPU model
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>
Diffstat (limited to 'linux-user/mips')
-rw-r--r--linux-user/mips/target_elf.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux-user/mips/target_elf.h b/linux-user/mips/target_elf.h
index fa5d30bf99..a98c9bd6ad 100644
--- a/linux-user/mips/target_elf.h
+++ b/linux-user/mips/target_elf.h
@@ -12,6 +12,9 @@ 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