f7e3d7521b
R5900 emulation was removed in commit823f2897bd
. Remove it from ELF parsing in order to avoid: $ qemu-mipsn32 ./test5900 qemu-mipsn32: unable to find CPU model 'R5900' This reverts commit4d9e5a0eb7
. Fixes:823f2897bd
("target/mips: Disable R5900 support") Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20240814133928.6746-2-philmd@linaro.org>
21 lines
588 B
C
21 lines
588 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_NAN2008) {
|
|
return "P5600";
|
|
}
|
|
return "24Kf";
|
|
}
|
|
#endif
|