]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
system/hvf: Avoid including 'cpu.h'
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 2 Apr 2025 11:17:28 +0000 (13:17 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 8 May 2025 12:22:12 +0000 (14:22 +0200)
"system/hvf.h" doesn't need to include a full "cpu.h",
only "exec/vaddr.h" and "qemu/queue.h" are required.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Message-Id: <20250403235821.9909-27-philmd@linaro.org>

include/system/hvf.h
include/system/hvf_int.h

index 730f927f034a834da095b3a7b4fc70b507bc0709..d50049e1a1aa0237fd7f97ee8653652006af29d4 100644 (file)
 #define HVF_H
 
 #include "qemu/accel.h"
+#include "qemu/queue.h"
+#include "exec/vaddr.h"
 #include "qom/object.h"
 
 #ifdef COMPILING_PER_TARGET
-#include "cpu.h"
 
 #ifdef CONFIG_HVF
 extern bool hvf_allowed;
index 42ae18433f03727dcdd45f3c0b44bf865a919475..8c8b84012d9cbf47586f323bd9c055d34d2ca9e4 100644 (file)
@@ -11,6 +11,8 @@
 #ifndef HVF_INT_H
 #define HVF_INT_H
 
+#include "qemu/queue.h"
+
 #ifdef __aarch64__
 #include <Hypervisor/Hypervisor.h>
 typedef hv_vcpu_t hvf_vcpuid;