aboutsummaryrefslogtreecommitdiff
path: root/include/system/tcg.h
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2024-12-03 15:20:13 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-12-20 17:44:56 +0100
commit32cad1ffb81dcecf6f4a8af56d6e5892682839b1 (patch)
tree6795b32d9c9a6406c9bbca905b9de8a90401af7f /include/system/tcg.h
parent63cda19446c5307cc05b965c203742a583fc5abf (diff)
downloadqemu-32cad1ffb81dcecf6f4a8af56d6e5892682839b1.zip
qemu-32cad1ffb81dcecf6f4a8af56d6e5892682839b1.tar.gz
qemu-32cad1ffb81dcecf6f4a8af56d6e5892682839b1.tar.bz2
include: Rename sysemu/ -> system/
Headers in include/sysemu/ are not only related to system *emulation*, they are also used by virtualization. Rename as system/ which is clearer. Files renamed manually then mechanical change using sed tool. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Tested-by: Lei Yang <leiyang@redhat.com> Message-Id: <20241203172445.28576-1-philmd@linaro.org>
Diffstat (limited to 'include/system/tcg.h')
-rw-r--r--include/system/tcg.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/system/tcg.h b/include/system/tcg.h
new file mode 100644
index 0000000..7322964
--- /dev/null
+++ b/include/system/tcg.h
@@ -0,0 +1,20 @@
+/*
+ * QEMU TCG support
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or later.
+ * See the COPYING file in the top-level directory.
+ */
+
+/* header to be included in non-TCG-specific code */
+
+#ifndef SYSTEM_TCG_H
+#define SYSTEM_TCG_H
+
+#ifdef CONFIG_TCG
+extern bool tcg_allowed;
+#define tcg_enabled() (tcg_allowed)
+#else
+#define tcg_enabled() 0
+#endif
+
+#endif