When TCG is not available, the tcg_allowed variable does not exist. Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20200526172427.17460-3-f4bug@amsat.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
20 lines
370 B
C
20 lines
370 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.
|
|
*/
|
|
|
|
#ifndef SYSEMU_TCG_H
|
|
#define SYSEMU_TCG_H
|
|
|
|
void tcg_exec_init(unsigned long tb_size);
|
|
#ifdef CONFIG_TCG
|
|
extern bool tcg_allowed;
|
|
#define tcg_enabled() (tcg_allowed)
|
|
#else
|
|
#define tcg_enabled() 0
|
|
#endif
|
|
|
|
#endif
|