diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2022-12-01 17:15:46 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2022-12-01 17:15:46 +0100 |
| commit | 3f007d2dbb2b0319d9c2ff4ef6dff10d77a9b6ab (patch) | |
| tree | 8d5c8ed93420b9eed74938a82dcaef61f13da87e /src/tools/bridge.c | |
| parent | cde68af79aa0c05dedaed7f440e7023a349501fb (diff) | |
| download | box64-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-x | src/tools/bridge.c | 3 |
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 |