blob: 5e2ca9aab3da4fb3bda7c70aa86363f0da723d9f [file] [log] [blame]
Markus Armbruster14a48c12019-05-23 16:35:05 +02001/*
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
Philippe Mathieu-Daudé69700302023-04-03 14:53:17 +02008/* header to be included in non-TCG-specific code */
9
Markus Armbruster14a48c12019-05-23 16:35:05 +020010#ifndef SYSEMU_TCG_H
11#define SYSEMU_TCG_H
12
Markus Armbruster14a48c12019-05-23 16:35:05 +020013#ifdef CONFIG_TCG
Philippe Mathieu-Daudéce4049e2020-05-26 19:24:22 +020014extern bool tcg_allowed;
Markus Armbruster14a48c12019-05-23 16:35:05 +020015#define tcg_enabled() (tcg_allowed)
16#else
17#define tcg_enabled() 0
18#endif
19
20#endif