about summary refs log tree commit diff stats
path: root/src/libtools/threads.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libtools/threads.c')
-rw-r--r--src/libtools/threads.c6
1 files changed, 4 insertions, 2 deletions
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;