qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v16 41/99] target/arm: new cpu32 ARM 32 bit CPU Class


From: Richard Henderson
Subject: Re: [PATCH v16 41/99] target/arm: new cpu32 ARM 32 bit CPU Class
Date: Fri, 4 Jun 2021 15:53:23 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1

On 6/4/21 8:52 AM, Alex Bennée wrote:
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

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

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]