Use 64bit store instruction in atomic_fcmpset_64.

Reported by: br
This commit is contained in:
kan 2017-02-06 14:00:28 +00:00
parent 93a6462937
commit 7b51060dc5

View File

@ -529,7 +529,7 @@ atomic_fcmpset_64(__volatile uint64_t *p, uint64_t *cmpval, uint64_t newval)
"beqz %0, 1b\n\t" /* if it failed, spin */
"j 3f\n\t"
"2:\n\t"
"sw %0, %2\n\t" /* save old value */
"sd %0, %2\n\t" /* save old value */
"li %0, 0\n\t"
"3:\n"
: "=&r" (ret), "+m" (*p), "=m" (*cmpval)