mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 16:15:36 +00:00
cpu: Unicorn-ify the qemu_tcg_mttcg_enabled() macro
Gets rid of reliance on a non-existent variable
This commit is contained in:
parent
f41747c9ba
commit
72c18027a6
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue