Fix wrong branch condition in MIPS testandset.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2798 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
9e315fa93c
commit
976a0d0d0d
@ -476,7 +476,7 @@ static inline int testandset (int *p)
|
||||
"1: li $1, 1 \n"
|
||||
" ll %0, %1 \n"
|
||||
" sc $1, %1 \n"
|
||||
" bnez $1, 1b \n"
|
||||
" beqz $1, 1b \n"
|
||||
" .set pop "
|
||||
: "=r" (ret), "+R" (*p)
|
||||
:
|
||||
|
Loading…
Reference in New Issue
Block a user