From 3f007d2dbb2b0319d9c2ff4ef6dff10d77a9b6ab Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Thu, 1 Dec 2022 17:15:46 +0100 Subject: [DYNAREC] More control over HotPage handling with BOX64_DYNARC_HOTPAGE --- src/tools/bridge.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/tools/bridge.c') diff --git a/src/tools/bridge.c b/src/tools/bridge.c index eb6939fb..5884e48a 100755 --- a/src/tools/bridge.c +++ b/src/tools/bridge.c @@ -136,8 +136,7 @@ uintptr_t AddBridge(bridge_t* bridge, wrapper_t w, void* fnc, int N, const char* kh_value(bridge->bridgemap, k) = (uintptr_t)&b->b[sz].CC; pthread_mutex_unlock(&my_context->mutex_bridge); #ifdef DYNAREC - // only reprotect the block when stuffs are running - if(!my_context->deferedInit && box64_dynarec) + if(box64_dynarec) protectDB((uintptr_t)b->b, NBRICK*sizeof(onebridge_t)); #endif #ifdef HAVE_TRACE -- cgit 1.4.1