提交 976a0d0d 编写于 作者: T ths

Fix wrong branch condition in MIPS testandset.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2798 c046a42c-6fe2-441c-8c8c-71466251a162
上级 9e315fa9
......@@ -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)
:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册