|
| From: | Richard Henderson |
| Subject: | Re: [Qemu-devel] [PATCH v2 4/4] linux-user: MIPS set cpu to r6 CPU if binary is R6 |
| Date: | Tue, 16 Jan 2018 12:26:19 -0800 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 |
On 01/16/2018 09:25 AM, Laurent Vivier wrote:
> From: YunQiang Su <address@hidden>
>
> 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 <address@hidden>
> ---
Reviewed-by: Richard Henderson <address@hidden>
> 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~
| [Prev in Thread] | Current Thread | [Next in Thread] |