cpu: Unicorn-ify the qemu_tcg_mttcg_enabled() macro

Gets rid of reliance on a non-existent variable
This commit is contained in:
Lioncash 2018-03-14 10:57:16 -04:00
parent f41747c9ba
commit 72c18027a6
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -357,8 +357,7 @@ static inline void cpu_tb_jmp_cache_clear(CPUState *cpu)
*
* Returns: %true if we are in MTTCG mode %false otherwise.
*/
extern bool mttcg_enabled;
#define qemu_tcg_mttcg_enabled() (mttcg_enabled)
#define qemu_tcg_mttcg_enabled(uc) ((uc)->mttcg_enabled)
/**
* cpu_paging_enabled: