On 01/16/2018 09:25 AM, Laurent Vivier wrote: > From: YunQiang Su <s...@debian.org> > > So here we need to detect the version of binaries and set > cpu_model for it. > > [lv: original patch modified to move code into cpu_get_model()] > Signed-off-by: Laurent Vivier <laur...@vivier.eu> > ---
Reviewed-by: Richard Henderson <richard.hender...@linaro.org> > static inline const char *cpu_get_model(uint32_t eflags) > { > + if ((eflags & EF_MIPS_ARCH_32R6) != 0) { > + return "mips32r6-generic"; > + } > return "24Kf"; That said, I don't suppose it's worth diagnosing cases that we can't support somehow? E.g. mips-linux-user and EF_MIPS_ARCH_64. Or even coldfire ISA-C. r~