Re: [PATCH v3 1/5] target/loongarch/cpu: Fix cpu_class_by_name function

2022-07-19 Thread Igor Mammedov
On Tue, 19 Jul 2022 12:22:14 +0530 Richard Henderson wrote: > On 7/19/22 12:16, Richard Henderson wrote: > > On 7/15/22 11:37, Xiaojuan Yang wrote: > >> In loongarch_cpu_class_by_name(char *cpu_model) function, > >> the argument cpu_model already has the suffix '-loongarch-cpu', > >> so we shou

Re: [PATCH v3 1/5] target/loongarch/cpu: Fix cpu_class_by_name function

2022-07-18 Thread Richard Henderson
On 7/19/22 12:16, Richard Henderson wrote: On 7/15/22 11:37, Xiaojuan Yang wrote: In loongarch_cpu_class_by_name(char *cpu_model) function, the argument cpu_model already has the suffix '-loongarch-cpu', so we should remove the LOONGARCH_CPU_TYPE_NAME(cpu_model) macro. And add the assertion that

Re: [PATCH v3 1/5] target/loongarch/cpu: Fix cpu_class_by_name function

2022-07-18 Thread Richard Henderson
On 7/15/22 11:37, Xiaojuan Yang wrote: In loongarch_cpu_class_by_name(char *cpu_model) function, the argument cpu_model already has the suffix '-loongarch-cpu', so we should remove the LOONGARCH_CPU_TYPE_NAME(cpu_model) macro. And add the assertion that 'cpu_model' resolves to a class of the appr

[PATCH v3 1/5] target/loongarch/cpu: Fix cpu_class_by_name function

2022-07-14 Thread Xiaojuan Yang
In loongarch_cpu_class_by_name(char *cpu_model) function, the argument cpu_model already has the suffix '-loongarch-cpu', so we should remove the LOONGARCH_CPU_TYPE_NAME(cpu_model) macro. And add the assertion that 'cpu_model' resolves to a class of the appropriate type. Signed-off-by: Xiaojuan Ya