aboutsummaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2024-08-14 12:17:26 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-08-20 00:49:13 +0200
commit309ce6af94738ae22f01f4c145b82e51400b14b6 (patch)
treeb190c205111e78870c09a64ae6fb492de8e3efa4 /linux-user
parent1e5a7c57a577d7702c668ef9fcdc9fa4187ef8aa (diff)
downloadqemu-309ce6af94738ae22f01f4c145b82e51400b14b6.zip
qemu-309ce6af94738ae22f01f4c145b82e51400b14b6.tar.gz
qemu-309ce6af94738ae22f01f4c145b82e51400b14b6.tar.bz2
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>
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/mips64/target_elf.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/linux-user/mips64/target_elf.h b/linux-user/mips64/target_elf.h
index ce6fb65..a3a8b2e 100644
--- a/linux-user/mips64/target_elf.h
+++ b/linux-user/mips64/target_elf.h
@@ -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";
}