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:
ths 2007-05-10 00:33:40 +00:00
parent 9e315fa93c
commit 976a0d0d0d

View File

@ -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)
: