target: Introduce and use OBJECT_DECLARE_CPU_TYPE() macro
commit9295b1aa92d3efb3c08b71ee751fbfd83ea02f4d
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Mon, 14 Feb 2022 16:08:40 +0000 (14 17:08 +0100)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sun, 6 Mar 2022 21:23:09 +0000 (6 22:23 +0100)
tree4fc23f148c4cd422edfa02cf3b0e3217a7ed37bb
parent1ea4a06af0f6578e5d0ddcea148503290b1c4907
target: Introduce and use OBJECT_DECLARE_CPU_TYPE() macro

Replace the boilerplate code to declare CPU QOM types
and macros, and forward-declare the CPU instance type.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220214183144.27402-14-f4bug@amsat.org>
37 files changed:
include/hw/core/cpu.h
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.h
target/hppa/cpu-qom.h
target/hppa/cpu.h
target/i386/cpu-qom.h
target/i386/cpu.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.h
target/openrisc/cpu.h
target/ppc/cpu-qom.h
target/ppc/cpu.h
target/riscv/cpu.h
target/rx/cpu-qom.h
target/rx/cpu.h
target/s390x/cpu-qom.h
target/s390x/cpu.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