Skip to content

Commit

Permalink
[ARM] Improved some of the lock operation (seems to helps Anomaly lin…
Browse files Browse the repository at this point in the history
…ux version)
  • Loading branch information
ptitSeb committed Jan 21, 2024
1 parent 7d90fff commit d4cf4ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dynarec/arm_lock_helper.S
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ arm_lock_storeifnull:
beq arm_lock_storeifnull
arm_lock_storeifnull_exit:
mov r0, r2
dmb ish
bx lr

arm_lock_storeifref2:
Expand All @@ -116,6 +117,7 @@ arm_lock_storeifref2_loop:
beq arm_lock_storeifref_loop
mov r0, r2
arm_lock_storeifref2_exit:
dmb ish
bx lr

arm_lock_storeifref:
Expand Down Expand Up @@ -175,11 +177,13 @@ arm_lock_incif0b_0:
bx lr

arm_lock_stored:
dmb ish
str r1, [r0]
dmb ish
bx lr

arm_lock_storeb:
dmb ish
strb r1, [r0]
dmb ish
bx lr
Expand Down

0 comments on commit d4cf4ee

Please sign in to comment.