diff options
Diffstat (limited to 'src')
| -rwxr-xr-x | src/dynarec/arm64_lock.S | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dynarec/arm64_lock.S b/src/dynarec/arm64_lock.S index 9f89b4e2..330b5569 100755 --- a/src/dynarec/arm64_lock.S +++ b/src/dynarec/arm64_lock.S @@ -106,9 +106,10 @@ arm64_lock_storeifref: ldaxr x3, [x0] cmp x2, x3 bne arm64_lock_storeifref_exit - mov x2, x1 - stlxr w4, x2, [x0] + stlxr w4, x1, [x0] cbnz w4, arm64_lock_storeifref + mov x0, x1 + ret arm64_lock_storeifref_exit: mov x0, x2 ret |