Skip to content

Commit 4573cb2

Browse files
authored
Merge pull request #2765 from martin-frbg/issue2760
Add memory barrier to the PPC blas_lock implementation for Linux
2 parents 2a4bb79 + c9d3267 commit 4573cb2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

common_power.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ static void INLINE blas_lock(volatile unsigned long *address){
105105
" bne- 1f\n"
106106
" stwcx. %2,0, %1\n"
107107
" bne- 0b\n"
108+
" isync\n"
108109
"1: "
109110
: "=&r"(ret)
110111
: "r"(address), "r" (val)

0 commit comments

Comments
 (0)