From: Philippe Mathieu-Daudé Date: Wed, 3 Apr 2024 10:32:14 +0000 (+0200) Subject: exec: Restrict TCG specific declarations of 'cputlb.h' X-Git-Tag: v9.1.0-rc0~133^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=43bc8a6f1a5aa69b815548ab79ec2ff38812135e;p=thirdparty%2Fqemu.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é Reviewed-by: Richard Henderson Message-Id: <20240418192525.97451-5-philmd@linaro.org> --- diff --git a/include/exec/cputlb.h b/include/exec/cputlb.h index 6da1462c4f8..ef18642a329 100644 --- a/include/exec/cputlb.h +++ b/include/exec/cputlb.h @@ -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