From 725f612eb55647fae9403dd8cc05710fe5d2a241 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Tue, 30 Mar 2021 15:17:57 +0200 Subject: [DYNAREC] disable dynarec when all fini function of loaded libs are done --- src/main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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 -- cgit 1.4.1