Ensure JIT protection is disabled when generating TB

This commit is contained in:
lazymio 2021-11-07 20:23:25 +01:00
parent 923b4ad3cc
commit 94a82ed94d
No known key found for this signature in database
GPG Key ID: DFF27E34A47CB873
1 changed files with 3 additions and 1 deletions

View File

@ -1552,7 +1552,9 @@ TranslationBlock *tb_gen_code(CPUState *cpu,
int gen_code_size, search_size, max_insns;
assert_memory_lock();
#ifdef HAVE_PTHREAD_JIT_PROTECT
tb_exec_unlock(false);
#endif
phys_pc = get_page_addr_code(env, pc);
if (phys_pc == -1) {