diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-03-30 15:17:57 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-03-30 15:17:57 +0200 |
| commit | 725f612eb55647fae9403dd8cc05710fe5d2a241 (patch) | |
| tree | 5368fd161e3215d67a9c1d04a8728ecf7aa7b203 /src | |
| parent | 3539ed5bfe25971d106c27d40c56d194a72d897a (diff) | |
| download | box64-725f612eb55647fae9403dd8cc05710fe5d2a241.tar.gz box64-725f612eb55647fae9403dd8cc05710fe5d2a241.zip | |
[DYNAREC] disable dynarec when all fini function of loaded libs are done
Diffstat (limited to 'src')
| -rwxr-xr-x | src/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index 81eb7b19..118e7e33 100755 --- a/src/main.c +++ b/src/main.c @@ -596,6 +596,10 @@ void endBox64() // than call all the Fini (some "smart" ordering of the fini may be needed, but for now, callign in this order should be good enough) printf_log(LOG_DEBUG, "Calling fini for all loaded elfs and unload native libs\n"); RunElfFini(my_context->elfs[0], emu); + #ifdef DYNAREC + // disable dynarec now + box64_dynarec = 0; + #endif FreeLibrarian(&my_context->local_maplib, emu); // unload all libs FreeLibrarian(&my_context->maplib, emu); // unload all libs // waiting for all thread except this one to finish |