On 10/13/23 05:56, Philippe Mathieu-Daudé wrote:
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.hender...@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>
---
  include/hw/ppc/ppc.h |  2 +-
  target/ppc/cpu-qom.h | 56 --------------------------------------------
  target/ppc/cpu.h     | 51 ++++++++++++++++++++++++++++++++++++++++
  3 files changed, 52 insertions(+), 57 deletions(-)

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


r~

Reply via email to