mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
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>
This commit is contained in:
parent
290dae4678
commit
8e2b72990e
4 changed files with 9 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue