summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2024-04-03 12:32:14 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-04-26 17:03:05 +0200
commit43bc8a6f1a5aa69b815548ab79ec2ff38812135e (patch)
treefc0a943dabe70c31b279c8a3ccec329a8d8f556d
parent6ce1c9d08554c70da6ca7262b00361d8bdc1705b (diff)
downloadfocaccia-qemu-43bc8a6f1a5aa69b815548ab79ec2ff38812135e.tar.gz
focaccia-qemu-43bc8a6f1a5aa69b815548ab79ec2ff38812135e.zip
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>
-rw-r--r--include/exec/cputlb.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/exec/cputlb.h b/include/exec/cputlb.h
index 6da1462c4f..ef18642a32 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