[PATCH-for-9.1? 4/4] linux-user/mips: Select Loongson CPU for Loongson binaries

Philippe Mathieu-Daudé posted 4 patches 3 months, 1 week ago
[PATCH-for-9.1? 4/4] linux-user/mips: Select Loongson CPU for Loongson binaries
Posted by Philippe Mathieu-Daudé 3 months, 1 week ago
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 linux-user/mips64/target_elf.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/linux-user/mips64/target_elf.h b/linux-user/mips64/target_elf.h
index a3a8b2e385..502af9d278 100644
--- a/linux-user/mips64/target_elf.h
+++ b/linux-user/mips64/target_elf.h
@@ -14,6 +14,12 @@ static inline const char *cpu_get_model(uint32_t eflags)
     case EF_MIPS_MACH_OCTEON2:
     case EF_MIPS_MACH_OCTEON3:
         return "Octeon68XX";
+    case EF_MIPS_MACH_LS2E:
+        return "Loongson-2E";
+    case EF_MIPS_MACH_LS2F:
+        return "Loongson-2F";
+    case EF_MIPS_MACH_LS3A:
+        return "Loongson-3A1000";
     default:
         break;
     }
-- 
2.45.2


Re: [PATCH-for-9.1? 4/4] linux-user/mips: Select Loongson CPU for Loongson binaries
Posted by Richard Henderson 3 months, 1 week ago
On 8/14/24 23:39, Philippe Mathieu-Daudé wrote:
> Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org>
> ---
>   linux-user/mips64/target_elf.h | 6 ++++++
>   1 file changed, 6 insertions(+)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

And yes, this might as well go in with the others for 9.1.


r~