On 4/29/25 06:21, Peter Maydell wrote:
The only thing we have left in the TYPE_AARCH64_CPU class that makes
it different to TYPE_ARM_CPU is that we register the handling of the
"aarch64" property there.

Move the handling of this property to the base class, where we make
it a property of the object rather than of the class, and add it
to the CPU if it has the ARM_FEATURE_AARCH64 property present at
init.  This is in line with how we handle other Arm CPU properties,
and should not change which CPUs it's visible for.

Signed-off-by: Peter Maydell<peter.mayd...@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé<phi...@linaro.org>
---
  target/arm/cpu.c   | 36 ++++++++++++++++++++++++++++++++++++
  target/arm/cpu64.c | 33 ---------------------------------
  2 files changed, 36 insertions(+), 33 deletions(-)

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

r~

Reply via email to