projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ce1c9d
)
exec: Restrict TCG specific declarations of 'cputlb.h'
author
Philippe Mathieu-Daudé
<philmd@linaro.org>
Wed, 3 Apr 2024 10:32:14 +0000
(12:32 +0200)
committer
Philippe 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
patch
|
blob
|
history
diff --git
a/include/exec/cputlb.h
b/include/exec/cputlb.h
index 6da1462c4f8966daed60045a2cc45cbd02ee3d6f..ef18642a329464fdc759e7bdf1662d44131fc67d 100644
(file)
--- 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