]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
accel/tcg: Compile watchpoint.c once
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 7 Mar 2025 02:58:53 +0000 (18:58 -0800)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 8 Mar 2025 15:55:50 +0000 (07:55 -0800)
Move tb_check_watchpoint declaration from tb-internal.h, which is
still target-specific, to internal-common.h, which isn't.
Otherwise, all that is required to build watchpoint.c once is
to include the new exec/cpu-interrupt.h instead of exec/exec-all.h.

Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/internal-common.h
accel/tcg/meson.build
accel/tcg/tb-internal.h
accel/tcg/watchpoint.c

index 7ef620d96318ff359cfe37bfed3a1d2b90c8cf82..9b6ab3a8cc0bd783fd9a47508d81b18d4e03e99c 100644 (file)
@@ -72,4 +72,6 @@ void tcg_exec_unrealizefn(CPUState *cpu);
 /* current cflags for hashing/comparison */
 uint32_t curr_cflags(CPUState *cpu);
 
+void tb_check_watchpoint(CPUState *cpu, uintptr_t retaddr);
+
 #endif
index 69f4808ac491516999f377e0ddfd1e5a8bf47fa2..979ce90eb0a0269b022c8eb70dc727affd674c72 100644 (file)
@@ -20,7 +20,6 @@ specific_ss.add_all(when: 'CONFIG_TCG', if_true: tcg_specific_ss)
 
 specific_ss.add(when: ['CONFIG_SYSTEM_ONLY', 'CONFIG_TCG'], if_true: files(
   'cputlb.c',
-  'watchpoint.c',
   'tcg-accel-ops.c',
   'tcg-accel-ops-mttcg.c',
   'tcg-accel-ops-icount.c',
@@ -30,4 +29,5 @@ specific_ss.add(when: ['CONFIG_SYSTEM_ONLY', 'CONFIG_TCG'], if_true: files(
 system_ss.add(when: ['CONFIG_TCG'], if_true: files(
   'icount-common.c',
   'monitor.c',
+  'watchpoint.c',
 ))
index abd423fcf588067f6a4a05ee3e37fe51a2399e33..62a59a5307ecee726a88a2bd98768ada4666d09a 100644 (file)
@@ -75,6 +75,4 @@ void tb_invalidate_phys_range_fast(ram_addr_t ram_addr,
 
 bool tb_invalidate_phys_page_unwind(tb_page_addr_t addr, uintptr_t pc);
 
-void tb_check_watchpoint(CPUState *cpu, uintptr_t retaddr);
-
 #endif
index 40112b2b2e70fe99c8f0041c13d45db6c47f9ea5..ba8c9859cf40697a0a45eb0533c02a83214fe9b6 100644 (file)
 
 #include "qemu/osdep.h"
 #include "qemu/main-loop.h"
-#include "qemu/error-report.h"
-#include "exec/exec-all.h"
+#include "exec/breakpoint.h"
+#include "exec/cpu-interrupt.h"
 #include "exec/page-protection.h"
 #include "exec/translation-block.h"
-#include "tb-internal.h"
 #include "system/tcg.h"
 #include "system/replay.h"
 #include "accel/tcg/cpu-ops.h"