mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00

qemu_tcg_mttcg_enabled() is specific to 1/ TCG and 2/ system emulation. Move the prototype declaration to "system/tcg.h", reducing 'mttcg_enabled' variable scope. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-ID: <20250403220420.78937-17-philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
28 lines
571 B
C
28 lines
571 B
C
/*
|
|
* 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
|
|
|
|
/**
|
|
* qemu_tcg_mttcg_enabled:
|
|
* Check whether we are running MultiThread TCG or not.
|
|
*
|
|
* Returns: %true if we are in MTTCG mode %false otherwise.
|
|
*/
|
|
bool qemu_tcg_mttcg_enabled(void);
|
|
|
|
#endif
|