mirror of https://github.com/xemu-project/xemu.git
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:
parent
6ce1c9d085
commit
43bc8a6f1a
|
@ -22,9 +22,14 @@
|
||||||
|
|
||||||
#include "exec/cpu-common.h"
|
#include "exec/cpu-common.h"
|
||||||
|
|
||||||
|
#ifdef CONFIG_TCG
|
||||||
|
|
||||||
#if !defined(CONFIG_USER_ONLY)
|
#if !defined(CONFIG_USER_ONLY)
|
||||||
/* cputlb.c */
|
/* cputlb.c */
|
||||||
void tlb_protect_code(ram_addr_t ram_addr);
|
void tlb_protect_code(ram_addr_t ram_addr);
|
||||||
void tlb_unprotect_code(ram_addr_t ram_addr);
|
void tlb_unprotect_code(ram_addr_t ram_addr);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif /* CONFIG_TCG */
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue