target/ppc: Move PowerPCCPUClass definition to 'cpu.h'
commitf3cb33255c6baa0362012349b58bf49bc8f9f704
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 13 Oct 2023 10:11:18 +0000 (13 12:11 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 7 Nov 2023 11:13:28 +0000 (7 12:13 +0100)
tree08973debff567c56a52539b4d0b02f9056cc9712
parent866c8cf91879ac9a079fb3d676af3b4f47fc57cf
target/ppc: Move PowerPCCPUClass definition to 'cpu.h'

The OBJECT_DECLARE_CPU_TYPE() macro forward-declares the
PowerPCCPUClass type. This forward declaration is sufficient
for code in hw/ to use the QOM definitions. No need to expose
the structure definition. Keep it local to target/ppc/ by
moving it to target/ppc/cpu.h.

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: <20231013125630.95116-5-philmd@linaro.org>
include/hw/ppc/ppc.h
target/ppc/cpu-qom.h
target/ppc/cpu.h