aboutsummaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorFredrik Noring <noring@nocrew.org>2018-10-21 17:44:58 +0200
committerAleksandar Markovic <amarkovic@wavecomp.com>2018-10-24 15:20:31 +0200
commit4d9e5a0eb7df6e98ac6cf5e16029f35dd05b9537 (patch)
treea6041cf3af812019472534e95b0a279f31b715ec /linux-user
parented4f49ba9bb56ebca6987b1083255daf6c89b5de (diff)
downloadqemu-4d9e5a0eb7df6e98ac6cf5e16029f35dd05b9537.zip
qemu-4d9e5a0eb7df6e98ac6cf5e16029f35dd05b9537.tar.gz
qemu-4d9e5a0eb7df6e98ac6cf5e16029f35dd05b9537.tar.bz2
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')
-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 fa5d30b..a98c9bd 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