qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v5 05/31] cpu: Add helper cpu_model_from_type()


From: Richard Henderson
Subject: Re: [PATCH v5 05/31] cpu: Add helper cpu_model_from_type()
Date: Tue, 14 Nov 2023 16:35:43 -0800
User-agent: Mozilla Thunderbird

On 11/14/23 15:56, 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 commits to conver the
CPU type name to the CPU model name.

Suggested-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Gavin Shan <gshan@redhat.com>
---
  cpu-target.c          | 15 +++++++++++++++
  include/hw/core/cpu.h | 12 ++++++++++++
  2 files changed, 27 insertions(+)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]