qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v2 12/16] target: Move ArchCPUClass definition to 'cpu.h'


From: Richard Henderson
Subject: Re: [PATCH v2 12/16] target: Move ArchCPUClass definition to 'cpu.h'
Date: Fri, 13 Oct 2023 07:36:27 -0700
User-agent: Mozilla Thunderbird

On 10/13/23 07:01, Philippe Mathieu-Daudé wrote:
The OBJECT_DECLARE_CPU_TYPE() macro forward-declares each
ArchCPUClass type. These forward declarations are sufficient
for code in hw/ to use the QOM definitions. No need to expose
these structure definitions. Keep each local to their target/
by moving them to the corresponding "cpu.h" header.

Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
  target/alpha/cpu-qom.h      | 16 ---------------
  target/alpha/cpu.h          | 13 +++++++++++++
  target/arm/cpu-qom.h        | 27 -------------------------
  target/arm/cpu.h            | 25 ++++++++++++++++++++++++
  target/avr/cpu-qom.h        | 16 ---------------
  target/avr/cpu.h            | 14 +++++++++++++
  target/cris/cpu-qom.h       | 19 ------------------
  target/cris/cpu.h           | 16 +++++++++++++++
  target/hexagon/cpu-qom.h    |  1 -
  target/hppa/cpu-qom.h       | 16 ---------------
  target/hppa/cpu.h           | 14 +++++++++++++
  target/i386/cpu-qom.h       | 39 -------------------------------------
  target/i386/cpu.h           | 35 +++++++++++++++++++++++++++++++++
  target/loongarch/cpu-qom.h  |  1 -
  target/m68k/cpu-qom.h       | 16 ---------------
  target/m68k/cpu.h           | 13 +++++++++++++
  target/microblaze/cpu-qom.h | 16 ---------------
  target/microblaze/cpu.h     | 13 +++++++++++++
  target/mips/cpu-qom.h       | 20 -------------------
  target/mips/cpu.h           | 17 ++++++++++++++++
  target/nios2/cpu-qom.h      |  1 -
  target/openrisc/cpu-qom.h   |  1 -
  target/riscv/cpu-qom.h      | 16 +--------------
  target/riscv/cpu.h          | 14 +++++++++++++
  target/rx/cpu-qom.h         | 15 --------------
  target/rx/cpu.h             | 14 +++++++++++++
  target/s390x/cpu-qom.h      | 37 +----------------------------------
  target/s390x/cpu.h          | 30 ++++++++++++++++++++++++++++
  target/s390x/cpu_models.h   |  8 ++++----
  target/sh4/cpu-qom.h        | 23 ----------------------
  target/sh4/cpu.h            | 20 +++++++++++++++++++
  target/sparc/cpu-qom.h      | 18 -----------------
  target/sparc/cpu.h          | 18 +++++++++++++++--
  target/tricore/cpu-qom.h    | 10 ----------
  target/tricore/cpu.h        |  6 ++++++
  target/xtensa/cpu-qom.h     | 21 --------------------
  target/xtensa/cpu.h         | 20 +++++++++++++++++--
  37 files changed, 284 insertions(+), 335 deletions(-)

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

r~



reply via email to

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