diff options
| author | Yang Liu <numbksco@gmail.com> | 2024-04-28 00:34:56 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-27 18:34:56 +0200 |
| commit | b7a07c381613c5f3f1847be4252b8b52dabcf4c4 (patch) | |
| tree | 04f0670732e72d8d2fe10c4035ca2b2c7826d728 /src/libtools/threads.c | |
| parent | ae386b3a7d171fb2f307f9e641821f0bbcb76f70 (diff) | |
| download | box64-b7a07c381613c5f3f1847be4252b8b52dabcf4c4.tar.gz box64-b7a07c381613c5f3f1847be4252b8b52dabcf4c4.zip | |
Fixed my_prepare_thread in dynarec build (#1474)
Diffstat (limited to 'src/libtools/threads.c')
| -rw-r--r-- | src/libtools/threads.c | 6 |
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; |