Commit 976a0d0d0d8f8a6f5ba3ac097e8bc4429bd370ae

Authored by ths
1 parent 9e315fa9

Fix wrong branch condition in MIPS testandset.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2798 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
exec-all.h
... ... @@ -476,7 +476,7 @@ static inline int testandset (int *p)
476 476 "1: li $1, 1 \n"
477 477 " ll %0, %1 \n"
478 478 " sc $1, %1 \n"
479   - " bnez $1, 1b \n"
  479 + " beqz $1, 1b \n"
480 480 " .set pop "
481 481 : "=r" (ret), "+R" (*p)
482 482 :
... ...