mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue