From 5d69ed5f4a746b2c30b57fcf40d3a9d05a2a92e1 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sun, 11 Apr 2021 10:41:55 +0200 Subject: [DYNAREC] Fixed arm64_lock_storeifref function --- src/dynarec/arm64_lock.S | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit 1.4.1