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 <zhiwei_...@linux.alibaba.com>
---
cpu.c | 31 +++++++++++++++++++------------
1 file changed, 19 insertions(+), 12 deletions(-)
Alternative patch subject:
"cpu: Extract cpu_type_by_name() from parse_cpu_option()"
Otherwise,
Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>