OSDN Git Service

target: Move ArchCPUClass definition to 'cpu.h'
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 13 Oct 2023 09:35:04 +0000 (11:35 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 7 Nov 2023 12:08:48 +0000 (13:08 +0100)
commit9348028e7ed089a1e9ed45091668c4c199e76fcd
tree1e275471acdaa8852e8c53672967acb07f74ec61
parentc61b18a5d0562851b933cd2fdc61cf21ea1be270
target: Move ArchCPUClass definition to 'cpu.h'

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>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20231013140116.255-13-philmd@linaro.org>
37 files changed:
target/alpha/cpu-qom.h
target/alpha/cpu.h
target/arm/cpu-qom.h
target/arm/cpu.h
target/avr/cpu-qom.h
target/avr/cpu.h
target/cris/cpu-qom.h
target/cris/cpu.h
target/hexagon/cpu-qom.h
target/hppa/cpu-qom.h
target/hppa/cpu.h
target/i386/cpu-qom.h
target/i386/cpu.h
target/loongarch/cpu-qom.h
target/m68k/cpu-qom.h
target/m68k/cpu.h
target/microblaze/cpu-qom.h
target/microblaze/cpu.h
target/mips/cpu-qom.h
target/mips/cpu.h
target/nios2/cpu-qom.h
target/openrisc/cpu-qom.h
target/riscv/cpu-qom.h
target/riscv/cpu.h
target/rx/cpu-qom.h
target/rx/cpu.h
target/s390x/cpu-qom.h
target/s390x/cpu.h
target/s390x/cpu_models.h
target/sh4/cpu-qom.h
target/sh4/cpu.h
target/sparc/cpu-qom.h
target/sparc/cpu.h
target/tricore/cpu-qom.h
target/tricore/cpu.h
target/xtensa/cpu-qom.h
target/xtensa/cpu.h