From: Philippe Mathieu-Daudé Date: Tue, 26 Mar 2024 17:38:02 +0000 (+0100) Subject: hw/core: Avoid including the full 'hw/core/cpu.h' in 'tcg-cpu-ops.h' X-Git-Tag: v9.1.0-rc0~133^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=76d07d321fad2e05f8a86243724f91577c5f94c6;p=thirdparty%2Fqemu.git hw/core: Avoid including the full 'hw/core/cpu.h' in 'tcg-cpu-ops.h' Only include what is required, avoiding the full CPUState API from the huge "hw/core/cpu.h" header. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20240418192525.97451-4-philmd@linaro.org> --- diff --git a/include/hw/core/tcg-cpu-ops.h b/include/hw/core/tcg-cpu-ops.h index dc1f16a9777..9387d387484 100644 --- a/include/hw/core/tcg-cpu-ops.h +++ b/include/hw/core/tcg-cpu-ops.h @@ -10,7 +10,11 @@ #ifndef TCG_CPU_OPS_H #define TCG_CPU_OPS_H -#include "hw/core/cpu.h" +#include "exec/breakpoint.h" +#include "exec/hwaddr.h" +#include "exec/memattrs.h" +#include "exec/mmu-access-type.h" +#include "exec/vaddr.h" struct TCGCPUOps { /**