]> git.proxmox.com Git - mirror_qemu.git/commitdiff
accel/tcg: Declare tcg_flush_jmp_cache() in 'exec/tb-flush.h'
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 18 Sep 2023 07:56:14 +0000 (09:56 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 7 Nov 2023 11:13:27 +0000 (12:13 +0100)
"exec/cpu-common.h" is meant to contain the declarations
related to CPU usable with any accelerator / target
combination.

tcg_flush_jmp_cache() is specific to TCG, so restrict its
declaration by moving it to "exec/tb-flush.h".

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Anton Johansson <anjo@rev.ng>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230918104153.24433-2-philmd@linaro.org>

accel/tcg/cputlb.c
accel/tcg/tcg-accel-ops.c
hw/core/cpu-common.c
include/exec/cpu-common.h
include/exec/tb-flush.h
plugins/core.c

index f35c5f359b57054a8f1a394437f5170cd591c1b0..765805e70ba968ff5df1f5b8b9237f7a8d8f4b0d 100644 (file)
@@ -24,6 +24,7 @@
 #include "exec/memory.h"
 #include "exec/cpu_ldst.h"
 #include "exec/cputlb.h"
+#include "exec/tb-flush.h"
 #include "exec/memory-internal.h"
 #include "exec/ram_addr.h"
 #include "tcg/tcg.h"
index d885cc1d3c507ec8903752fb37c5eab8304e67b4..7ddb05c332e270331ab5aceb103a592707d94785 100644 (file)
@@ -34,6 +34,7 @@
 #include "qemu/timer.h"
 #include "exec/exec-all.h"
 #include "exec/hwaddr.h"
+#include "exec/tb-flush.h"
 #include "exec/gdbstub.h"
 
 #include "tcg-accel-ops.h"
index bab8942c30cb58d783a8b69a16bf5ef94f5b813c..29c917c5dc44cf0ba246f5cef26f5ae8fec0a305 100644 (file)
@@ -27,6 +27,7 @@
 #include "qemu/main-loop.h"
 #include "exec/log.h"
 #include "exec/cpu-common.h"
+#include "exec/tb-flush.h"
 #include "qemu/error-report.h"
 #include "qemu/qemu-print.h"
 #include "sysemu/tcg.h"
index 30c376a4dea73ad040e52e28973e2b0ba0aeabd9..f700071d1209052eaf3fe3b94d220d684eb12dac 100644 (file)
@@ -46,7 +46,6 @@ void cpu_list_unlock(void);
 unsigned int cpu_list_generation_id_get(void);
 
 void tcg_flush_softmmu_tlb(CPUState *cs);
-void tcg_flush_jmp_cache(CPUState *cs);
 
 void tcg_iommu_init_notifier_list(CPUState *cpu);
 void tcg_iommu_free_notifier_list(CPUState *cpu);
index d92d06565beb8f2ef6cbd199b8529635a83688ac..142c240d94c3198394f847153692531f08acb7a6 100644 (file)
@@ -23,4 +23,6 @@
  */
 void tb_flush(CPUState *cs);
 
+void tcg_flush_jmp_cache(CPUState *cs);
+
 #endif /* _TB_FLUSH_H_ */
index fcd33a2bff1e345330ccbd12b005c610676f34d0..49588285dd01b3ea7765631dbb571d627251cbb4 100644 (file)
@@ -21,7 +21,6 @@
 #include "qemu/xxhash.h"
 #include "qemu/rcu.h"
 #include "hw/core/cpu.h"
-#include "exec/cpu-common.h"
 
 #include "exec/exec-all.h"
 #include "exec/tb-flush.h"