exec: Restrict TCG specific declarations of 'cputlb.h'

Avoid TCG specific declarations being used from non-TCG accelerators.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20240418192525.97451-5-philmd@linaro.org>
This commit is contained in:
Philippe Mathieu-Daudé 2024-04-03 12:32:14 +02:00
parent 6ce1c9d085
commit 43bc8a6f1a

View File

@ -22,9 +22,14 @@
#include "exec/cpu-common.h"
#ifdef CONFIG_TCG
#if !defined(CONFIG_USER_ONLY)
/* cputlb.c */
void tlb_protect_code(ram_addr_t ram_addr);
void tlb_unprotect_code(ram_addr_t ram_addr);
#endif
#endif /* CONFIG_TCG */
#endif