qemu/target
Philippe Mathieu-Daudé d5be19f514 cpu: Call object_class_dynamic_cast() once in cpu_class_by_name()
For all targets, the CPU class returned from CPUClass::class_by_name()
and object_class_dynamic_cast(oc, CPU_RESOLVING_TYPE) need to be
compatible. Lets apply the check in cpu_class_by_name() for once,
instead of having the check in CPUClass::class_by_name() for individual
target.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Gavin Shan <gshan@redhat.com>
Message-ID: <20231114235628.534334-4-gshan@redhat.com>
2024-01-05 16:20:14 +01:00
..
alpha cpu: Call object_class_dynamic_cast() once in cpu_class_by_name() 2024-01-05 16:20:14 +01:00
arm cpu: Call object_class_dynamic_cast() once in cpu_class_by_name() 2024-01-05 16:20:14 +01:00
avr cpu: Call object_class_dynamic_cast() once in cpu_class_by_name() 2024-01-05 16:20:14 +01:00
cris cpu: Call object_class_dynamic_cast() once in cpu_class_by_name() 2024-01-05 16:20:14 +01:00
hexagon cpu: Call object_class_dynamic_cast() once in cpu_class_by_name() 2024-01-05 16:20:14 +01:00
hppa cpu: Call object_class_dynamic_cast() once in cpu_class_by_name() 2024-01-05 16:20:14 +01:00
i386 * configure: use a native non-cross compiler for linux-user 2024-01-04 19:55:20 +00:00
loongarch cpu: Call object_class_dynamic_cast() once in cpu_class_by_name() 2024-01-05 16:20:14 +01:00
m68k cpu: Call object_class_dynamic_cast() once in cpu_class_by_name() 2024-01-05 16:20:14 +01:00
microblaze target/microblaze: Constify VMState in machine.c 2023-12-29 11:17:30 +11:00
mips * configure: use a native non-cross compiler for linux-user 2024-01-04 19:55:20 +00:00
nios2 target: Move ArchCPUClass definition to 'cpu.h' 2023-11-07 13:08:48 +01:00
openrisc cpu: Call object_class_dynamic_cast() once in cpu_class_by_name() 2024-01-05 16:20:14 +01:00
ppc target/ppc: Constify VMState in machine.c 2023-12-29 11:17:30 +11:00
riscv cpu: Call object_class_dynamic_cast() once in cpu_class_by_name() 2024-01-05 16:20:14 +01:00
rx hw/cpu: Call object_class_is_abstract() once in cpu_class_by_name() 2023-11-07 13:08:48 +01:00
s390x target/s390x: Constify VMState in machine.c 2023-12-29 11:17:30 +11:00
sh4 sh4: Coding style: Remove tabs 2023-12-04 15:12:57 +01:00
sparc target/sparc: Constify VMState in machine.c 2023-12-29 11:17:30 +11:00
tricore cpu: Call object_class_dynamic_cast() once in cpu_class_by_name() 2024-01-05 16:20:14 +01:00
xtensa cpu: Call object_class_dynamic_cast() once in cpu_class_by_name() 2024-01-05 16:20:14 +01:00
Kconfig hw/loongarch: Add support loongson3 virt machine type. 2022-06-06 18:09:03 +00:00
meson.build target/loongarch: Add target build suport 2022-06-06 18:09:03 +00:00