about summary refs log tree commit diff stats
path: root/src/tools/bridge.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2022-12-01 17:15:46 +0100
committerptitSeb <sebastien.chev@gmail.com>2022-12-01 17:15:46 +0100
commit3f007d2dbb2b0319d9c2ff4ef6dff10d77a9b6ab (patch)
tree8d5c8ed93420b9eed74938a82dcaef61f13da87e /src/tools/bridge.c
parentcde68af79aa0c05dedaed7f440e7023a349501fb (diff)
downloadbox64-3f007d2dbb2b0319d9c2ff4ef6dff10d77a9b6ab.tar.gz
box64-3f007d2dbb2b0319d9c2ff4ef6dff10d77a9b6ab.zip
[DYNAREC] More control over HotPage handling with BOX64_DYNARC_HOTPAGE
Diffstat (limited to 'src/tools/bridge.c')
-rwxr-xr-xsrc/tools/bridge.c3
1 files changed, 1 insertions, 2 deletions
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