master
h 28 lines 571 Bytes
Raw
1 /*
2 * QEMU TCG support
3 *
4 * This work is licensed under the terms of the GNU GPL, version 2 or later.
5 * See the COPYING file in the top-level directory.
6 */
7
8 /* header to be included in non-TCG-specific code */
9
10 #ifndef SYSTEM_TCG_H
11 #define SYSTEM_TCG_H
12
13 #ifdef CONFIG_TCG
14 extern bool tcg_allowed;
15 #define tcg_enabled() (tcg_allowed)
16 #else
17 #define tcg_enabled() 0
18 #endif
19
20 /**
21 * qemu_tcg_mttcg_enabled:
22 * Check whether we are running MultiThread TCG or not.
23 *
24 * Returns: %true if we are in MTTCG mode %false otherwise.
25 */
26 bool qemu_tcg_mttcg_enabled(void);
27
28 #endif