]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
exec: Restrict TCG specific declarations of 'cputlb.h'
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 3 Apr 2024 10:32:14 +0000 (12:32 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 26 Apr 2024 15:03:05 +0000 (17:03 +0200)
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>

include/exec/cputlb.h

index 6da1462c4f8966daed60045a2cc45cbd02ee3d6f..ef18642a329464fdc759e7bdf1662d44131fc67d 100644 (file)
 
 #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