qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 4/7] target/ppc: Move PowerPCCPUClass definition to 'cpu.h'


From: Richard Henderson
Subject: Re: [PATCH 4/7] target/ppc: Move PowerPCCPUClass definition to 'cpu.h'
Date: Fri, 13 Oct 2023 06:37:05 -0700
User-agent: Mozilla Thunderbird

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.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@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.henderson@linaro.org>


r~



reply via email to

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