From: Philippe Mathieu-Daudé Date: Thu, 14 Aug 2025 06:40:49 +0000 (+0200) Subject: linux-user/mips: Select 74Kf CPU to run MIPS16e binaries X-Git-Tag: v10.0.4~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3b723a3518a1ffce121e035c6c6c33185170ac2a;p=thirdparty%2Fqemu.git linux-user/mips: Select 74Kf CPU to run MIPS16e binaries The 74Kf is our latest CPU supporting MIPS16e ASE. Note, currently QEMU doesn't have 64-bit CPU supporting MIPS16e ASE. Cc: qemu-stable@nongnu.org Fixes: 6ea219d0196..d19954f46df ("target-mips: MIPS16 support") Resolves: https://gitlab.com/qemu-project/qemu/-/issues/3054 Reported-by: Justin Applegate Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20250814070650.78657-3-philmd@linaro.org> (cherry picked from commit 7a09b3cc70ab6d717b18dec5c5995f7a06af4593) (Mjt: in 10.1 and before the code is in linux-user/mips/target_elf.h) Signed-off-by: Michael Tokarev --- diff --git a/linux-user/mips/target_elf.h b/linux-user/mips/target_elf.h index 71a32315a85..cd8622ce283 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_ARCH_ASE) == EF_MIPS_ARCH_ASE_M16) { + return "74Kf"; + } if (eflags & EF_MIPS_NAN2008) { return "P5600"; }