On 6/4/21 8:52 AM, Alex Bennée wrote:
From: Claudio Fontana<cfont...@suse.de>

In the ARM CPU class hierarchy, the ancestor TYPE_ARM_CPU is fundamentally
a 32 bit CPU Class. The child TYPE_AARCH64_CPU overrides the class to
make it a 64 bit CPU Class.

Explicitly put the 32bit CPU Class implementation in a cpu32.c,
along with the 32bit CPU Class model registration function.

In later changes, we will further split 32bit and 64bit code.

Signed-off-by: Claudio Fontana<cfont...@suse.de>
Signed-off-by: Alex Bennée<alex.ben...@linaro.org>
---
  target/arm/cpu-qom.h   |   3 --
  target/arm/cpu32.h     |  28 ++++++++++
  target/arm/cpu.c       |  55 ++-----------------
  target/arm/cpu32.c     | 118 +++++++++++++++++++++++++++++++++++++++++
  target/arm/cpu64.c     |   2 +-
  target/arm/cpu_tcg.c   |   3 +-
  target/arm/meson.build |   6 ++-
  7 files changed, 159 insertions(+), 56 deletions(-)
  create mode 100644 target/arm/cpu32.h
  create mode 100644 target/arm/cpu32.c

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

r~

Reply via email to