From: Claudio Fontana<cfontana@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<cfontana@suse.de>
Signed-off-by: Alex Bennée<alex.bennee@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