diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-04-03 12:32:14 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-04-26 17:03:05 +0200 |
commit | 43bc8a6f1a5aa69b815548ab79ec2ff38812135e (patch) | |
tree | fc0a943dabe70c31b279c8a3ccec329a8d8f556d | |
parent | 6ce1c9d08554c70da6ca7262b00361d8bdc1705b (diff) | |
download | qemu-43bc8a6f1a5aa69b815548ab79ec2ff38812135e.zip qemu-43bc8a6f1a5aa69b815548ab79ec2ff38812135e.tar.gz qemu-43bc8a6f1a5aa69b815548ab79ec2ff38812135e.tar.bz2 |
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.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/exec/cputlb.h b/include/exec/cputlb.h index 6da1462..ef18642 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 |