summary refs log tree commit diff stats
path: root/accel/tcg/cpu-exec-common.c
diff options
context:
space:
mode:
authorYang Zhong <yang.zhong@intel.com>2017-07-03 18:12:12 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2017-07-04 16:01:16 +0200
commit8e2b72990e9dc80ab3ff19717f45fec839bbcbc2 (patch)
tree05a3ba4437ed75400511d8a7f82876312afcbb01 /accel/tcg/cpu-exec-common.c
parent290dae4678df9f271dbde5cc5cc7648aff136493 (diff)
downloadfocaccia-qemu-8e2b72990e9dc80ab3ff19717f45fec839bbcbc2.tar.gz
focaccia-qemu-8e2b72990e9dc80ab3ff19717f45fec839bbcbc2.zip
tcg: make tcg_allowed global
Change the tcg_enabled() and make sure user build still enable tcg
even x86 softmmu disable tcg.

Signed-off-by: Yang Zhong <yang.zhong@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'accel/tcg/cpu-exec-common.c')
-rw-r--r--accel/tcg/cpu-exec-common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/accel/tcg/cpu-exec-common.c b/accel/tcg/cpu-exec-common.c
index e81da276bb..5b4ae54a4d 100644
--- a/accel/tcg/cpu-exec-common.c
+++ b/accel/tcg/cpu-exec-common.c
@@ -23,6 +23,8 @@
 #include "exec/exec-all.h"
 #include "exec/memory-internal.h"
 
+bool tcg_allowed;
+
 /* exit the current TB, but without causing any exception to be raised */
 void cpu_loop_exit_noexc(CPUState *cpu)
 {