diff options
| author | ptitSeb <seebastien.chev@gmail.com> | 2023-09-09 16:26:50 +0200 |
|---|---|---|
| committer | ptitSeb <seebastien.chev@gmail.com> | 2023-09-09 16:26:50 +0200 |
| commit | e245dee90b431532fd6fb2296e66f4e03c17095c (patch) | |
| tree | cb717fc97f3837ffd07b02141a1851bef51f1f66 /src/custommem.c | |
| parent | edba2a2e96ca446b22d9258f27250408db2eb949 (diff) | |
| download | box64-e245dee90b431532fd6fb2296e66f4e03c17095c.tar.gz box64-e245dee90b431532fd6fb2296e66f4e03c17095c.zip | |
[DYNAREC] Small improvment on multi-thread reliance for the jumptable
Diffstat (limited to 'src/custommem.c')
| -rw-r--r-- | src/custommem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/custommem.c b/src/custommem.c index a92f9831..3ec46783 100644 --- a/src/custommem.c +++ b/src/custommem.c @@ -748,7 +748,7 @@ void setJumpTableDefault64(void* addr) if(box64_jmptbl3[idx3][idx2][idx1] == box64_jmptbldefault0) return; idx0 = (((uintptr_t)addr) )&JMPTABLE_MASK0; - box64_jmptbl3[idx3][idx2][idx1][idx0] = (uintptr_t)native_next; + native_lock_store_dd(&box64_jmptbl3[idx3][idx2][idx1][idx0], (uintptr_t)native_next); } void setJumpTableDefaultRef64(void* addr, void* jmp) { |