summaryrefslogtreecommitdiffstats
path: root/accel
diff options
context:
space:
mode:
authorRichard Henderson2022-10-06 00:08:34 +0200
committerRichard Henderson2022-10-26 03:11:28 +0200
commitcc05368ad999a5e06890a829b2ccba7ae4e0fe8b (patch)
tree9ea99fa6bd393a1aa21bf460375df26a1eecf1e7 /accel
parentaccel/tcg: Split out tb-maint.c (diff)
downloadqemu-cc05368ad999a5e06890a829b2ccba7ae4e0fe8b.tar.gz
qemu-cc05368ad999a5e06890a829b2ccba7ae4e0fe8b.tar.xz
qemu-cc05368ad999a5e06890a829b2ccba7ae4e0fe8b.zip
accel/tcg: Move assert_no_pages_locked to internal.h
There are no users outside of accel/tcg; this function does not need to be defined in exec-all.h. Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'accel')
-rw-r--r--accel/tcg/internal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/accel/tcg/internal.h b/accel/tcg/internal.h
index a77b110b78..1a704ee14f 100644
--- a/accel/tcg/internal.h
+++ b/accel/tcg/internal.h
@@ -90,6 +90,11 @@ void do_assert_page_locked(const PageDesc *pd, const char *file, int line);
void page_lock(PageDesc *pd);
void page_unlock(PageDesc *pd);
#endif
+#if !defined(CONFIG_USER_ONLY) && defined(CONFIG_DEBUG_TCG)
+void assert_no_pages_locked(void);
+#else
+static inline void assert_no_pages_locked(void) { }
+#endif
TranslationBlock *tb_gen_code(CPUState *cpu, target_ulong pc,
target_ulong cs_base, uint32_t flags,