]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
accel/tcg: Include 'accel/tcg/getpc.h' in 'exec/helper-proto'
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 24 Apr 2025 20:24:08 +0000 (22:24 +0200)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 30 Apr 2025 19:45:05 +0000 (12:45 -0700)
Most files including "exec/helper-proto.h" call GETPC().
Include it there (in the common part) instead of the
unspecific "exec/exec-all.h" header.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20250424202412.91612-10-philmd@linaro.org>

accel/tcg/translate-all.c
include/exec/exec-all.h
include/exec/helper-proto-common.h
target/avr/helper.c

index 38819a507b2329af839044f66c722415bacdf79e..0408e2522a851d09443a26ab1fbdb559cf37f291 100644 (file)
@@ -61,6 +61,7 @@
 #include "system/tcg.h"
 #include "qapi/error.h"
 #include "accel/tcg/cpu-ops.h"
+#include "accel/tcg/getpc.h"
 #include "tb-jmp-cache.h"
 #include "tb-hash.h"
 #include "tb-context.h"
index 4c5ad98c6a92140a51997e32da6d0b381dbf07b7..816274bf905b1622e7d1c7b79030843354c85ca8 100644 (file)
@@ -26,7 +26,6 @@
 #include "exec/vaddr.h"
 
 #if defined(CONFIG_TCG)
-#include "accel/tcg/getpc.h"
 
 /**
  * probe_access:
index 16782ef46c893a08c4ef0b96458067c8a1787a90..76e6c25becb23858bd04b5f6bece0f04e666c88a 100644 (file)
@@ -13,4 +13,6 @@
 #include "exec/helper-proto.h.inc"
 #undef  HELPER_H
 
+#include "accel/tcg/getpc.h"
+
 #endif /* HELPER_PROTO_COMMON_H */
index afa591470fef683d108fa2e276091e4e5bf0c331..b9cd6d5ef278b6683f156e84397fd8aa3a3d97fd 100644 (file)
@@ -23,7 +23,6 @@
 #include "qemu/error-report.h"
 #include "cpu.h"
 #include "accel/tcg/cpu-ops.h"
-#include "accel/tcg/getpc.h"
 #include "exec/cputlb.h"
 #include "exec/page-protection.h"
 #include "exec/target_page.h"