Re: [RFC PATCH 1/3] cpu: Add new API cpu_type_by_name

2023-08-28 Thread Philippe Mathieu-Daudé
On 25/8/23 14:16, LIU Zhiwei wrote: cpu_type_by_name is used to get the cpu type name from the command line -cpu. Currently it is only used by parse_cpu_option. In the next patch, it will be used by other cpu query functions. Signed-off-by: LIU Zhiwei --- cpu.c | 31

[RFC PATCH 1/3] cpu: Add new API cpu_type_by_name

2023-08-25 Thread LIU Zhiwei
cpu_type_by_name is used to get the cpu type name from the command line -cpu. Currently it is only used by parse_cpu_option. In the next patch, it will be used by other cpu query functions. Signed-off-by: LIU Zhiwei --- cpu.c | 31 +++ 1 file changed, 19