aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-09-14 20:57:09 +0200
committerRichard Henderson <richard.henderson@linaro.org>2023-10-04 11:03:54 -0700
commit7ada976fee54c1b67dac2d9c0cb3bb02173084cc (patch)
tree4ee2f02afd04ff61bff88c688a281e9900b7c2a8
parent3549118b498873c84b442bc280a5edafbb61e0a4 (diff)
accel/tcg: Restrict dump_exec_info() declaration
In commit 00c9a5c2c3 ("accel/tcg: Restrict 'qapi-commands-machine.h' to system emulation") we moved the definition to accel/tcg/ which is where this function is called. No need to expose it outside. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Anton Johansson <anjo@rev.ng> Message-Id: <20230914185718.76241-4-philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
-rw-r--r--accel/tcg/internal.h2
-rw-r--r--include/exec/cpu-all.h5
2 files changed, 2 insertions, 5 deletions
diff --git a/accel/tcg/internal.h b/accel/tcg/internal.h
index 57ab397df1..f2fa52029e 100644
--- a/accel/tcg/internal.h
+++ b/accel/tcg/internal.h
@@ -105,6 +105,8 @@ static inline bool cpu_in_serial_context(CPUState *cs)
extern int64_t max_delay;
extern int64_t max_advance;
+void dump_exec_info(GString *buf);
+
extern bool one_insn_per_tb;
/**
diff --git a/include/exec/cpu-all.h b/include/exec/cpu-all.h
index b14255923b..5340907cfd 100644
--- a/include/exec/cpu-all.h
+++ b/include/exec/cpu-all.h
@@ -406,11 +406,6 @@ static inline bool tlb_hit(uint64_t tlb_addr, vaddr addr)
return tlb_hit_page(tlb_addr, addr & TARGET_PAGE_MASK);
}
-#ifdef CONFIG_TCG
-/* accel/tcg/translate-all.c */
-void dump_exec_info(GString *buf);
-#endif /* CONFIG_TCG */
-
#endif /* !CONFIG_USER_ONLY */
/* accel/tcg/cpu-exec.c */