diff options
| author | Yang Zhong | 2017-07-03 12:12:12 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2017-07-04 16:01:16 +0200 |
| commit | 8e2b72990e9dc80ab3ff19717f45fec839bbcbc2 (patch) | |
| tree | 05a3ba4437ed75400511d8a7f82876312afcbb01 /include | |
| parent | cpu: move interrupt handling out of translate-common.c (diff) | |
| download | qemu-8e2b72990e9dc80ab3ff19717f45fec839bbcbc2.tar.gz qemu-8e2b72990e9dc80ab3ff19717f45fec839bbcbc2.tar.xz 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 'include')
| -rw-r--r-- | include/qemu-common.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/qemu-common.h b/include/qemu-common.h index 387ef520bf..b5adbfa5e9 100644 --- a/include/qemu-common.h +++ b/include/qemu-common.h @@ -76,8 +76,13 @@ int qemu_openpty_raw(int *aslave, char *pty_name); sendto(sockfd, buf, len, flags, destaddr, addrlen) #endif +extern bool tcg_allowed; void tcg_exec_init(unsigned long tb_size); -bool tcg_enabled(void); +#ifdef CONFIG_TCG +#define tcg_enabled() (tcg_allowed) +#else +#define tcg_enabled() 0 +#endif void cpu_exec_init_all(void); void cpu_exec_step_atomic(CPUState *cpu); |
