From b7a07c381613c5f3f1847be4252b8b52dabcf4c4 Mon Sep 17 00:00:00 2001 From: Yang Liu Date: Sun, 28 Apr 2024 00:34:56 +0800 Subject: Fixed my_prepare_thread in dynarec build (#1474) --- src/libtools/threads.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/libtools/threads.c') diff --git a/src/libtools/threads.c b/src/libtools/threads.c index 2829917d..6566b84e 100644 --- a/src/libtools/threads.c +++ b/src/libtools/threads.c @@ -542,8 +542,10 @@ void* my_prepare_thread(x64emu_t *emu, void* f, void* arg, int ssize, void** pet et->fnc = (uintptr_t)f; et->arg = arg; #ifdef DYNAREC - // pre-creation of the JIT code for the entry point of the thread - DBGetBlock(emu, (uintptr_t)f, 1, 0); // function wrapping are 64bits only on box64 + if(box64_dynarec) { + // pre-creation of the JIT code for the entry point of the thread + DBGetBlock(emu, (uintptr_t)f, 1, 0); // function wrapping are 64bits only on box64 + } #endif *pet = et; return pthread_routine; -- cgit 1.4.1