On 7/9/23 02:35, Gavin Shan wrote:
Add helper cpu_model_from_type() to extract the CPU model name from
the CPU type name in two circumstances: (1) The CPU type name is the
combination of the CPU model name and suffix. (2) The CPU type name
is same to the CPU model name.

The helper will be used in the subsequent patches to conver the

"patches to conver" -> "commits to convert"

CPU type name to the CPU model name.

Suggested-by: Igor Mammedov <imamm...@redhat.com>
Signed-off-by: Gavin Shan <gs...@redhat.com>
---
  cpu.c                 | 16 ++++++++++++++++
  include/hw/core/cpu.h | 12 ++++++++++++
  2 files changed, 28 insertions(+)


Reply via email to