linux-user/mips: Select MIPS64R2-generic for Rel2 binaries

Cc: YunQiang Su <syq@debian.org>
Reported-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20240814133928.6746-4-philmd@linaro.org>
This commit is contained in:
Philippe Mathieu-Daudé 2024-08-14 12:17:26 +02:00
parent 1e5a7c57a5
commit 309ce6af94

View File

@ -17,8 +17,13 @@ static inline const char *cpu_get_model(uint32_t eflags)
default:
break;
}
if ((eflags & EF_MIPS_ARCH) == EF_MIPS_ARCH_64R6) {
switch (eflags & EF_MIPS_ARCH) {
case EF_MIPS_ARCH_64R6:
return "I6400";
case EF_MIPS_ARCH_64R2:
return "MIPS64R2-generic";
default:
break;
}
return "5KEf";
}