[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 17/32] target/tricore: Use generic helper to show CPU mode
From: |
Bastian Koppelmann |
Subject: |
Re: [PATCH v3 17/32] target/tricore: Use generic helper to show CPU model names |
Date: |
Thu, 7 Sep 2023 07:41:16 +0200 |
On Thu, Sep 07, 2023 at 10:35:38AM +1000, Gavin Shan wrote:
> For target/tricore, the CPU type name is always the combination of the
> CPU model name and suffix. The CPU model names have been correctly
> shown in tricore_cpu_list_entry().
>
> Use generic helper cpu_model_from_type() to show the CPU model names
> in the above function. tricore_cpu_class_by_name() is also improved
> by merging the condition of '@oc == NULL' to object_class_dynamic_cast().
>
> Signed-off-by: Gavin Shan <gshan@redhat.com>
> ---
> target/tricore/cpu.c | 9 +++++----
> target/tricore/helper.c | 13 +++++--------
> 2 files changed, 10 insertions(+), 12 deletions(-)
Reviewed-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Cheers,
Bastian
- [PATCH v3 15/32] target/s390x: Use generic helper to show CPU model names, (continued)
Re: [PATCH v3 15/32] target/s390x: Use generic helper to show CPU model names, Thomas Huth, 2023/09/07
[PATCH v3 16/32] target/sh4: Use generic helper to show CPU model names, Gavin Shan, 2023/09/06
[PATCH v3 17/32] target/tricore: Use generic helper to show CPU model names, Gavin Shan, 2023/09/06
- Re: [PATCH v3 17/32] target/tricore: Use generic helper to show CPU model names,
Bastian Koppelmann <=
[PATCH v3 18/32] target/sparc: Improve sparc_cpu_class_by_name(), Gavin Shan, 2023/09/06
[PATCH v3 19/32] target/xtensa: Improve xtensa_cpu_class_by_name(), Gavin Shan, 2023/09/06
[PATCH v3 20/32] target/hppa: Implement hppa_cpu_list(), Gavin Shan, 2023/09/06
[PATCH v3 21/32] target/microblaze: Implement microblaze_cpu_list(), Gavin Shan, 2023/09/06
[PATCH v3 22/32] target/nios2: Implement nios2_cpu_list(), Gavin Shan, 2023/09/06
[PATCH v3 23/32] Mark cpu_list() supported on all targets, Gavin Shan, 2023/09/06
[PATCH v3 24/32] machine: Constify MachineClass::valid_cpu_types[i], Gavin Shan, 2023/09/06
[PATCH v3 25/32] machine: Use error handling when CPU type is checked, Gavin Shan, 2023/09/06
[PATCH v3 26/32] machine: Introduce helper is_cpu_type_supported(), Gavin Shan, 2023/09/06