qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

sysemu/tcg: Only declare tcg_allowed when TCG is available

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>

authored by

Philippe Mathieu-Daudé and committed by
Paolo Bonzini
ce4049e8 33fb9bfa

+1 -1
+1 -1
include/sysemu/tcg.h
··· 8 8 #ifndef SYSEMU_TCG_H 9 9 #define SYSEMU_TCG_H 10 10 11 - extern bool tcg_allowed; 12 11 void tcg_exec_init(unsigned long tb_size); 13 12 #ifdef CONFIG_TCG 13 + extern bool tcg_allowed; 14 14 #define tcg_enabled() (tcg_allowed) 15 15 #else 16 16 #define tcg_enabled() 0