提交 02e1ec9b 编写于 作者: B bellard

Mac OS X port (Pierre d'Herbemont)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@994 c046a42c-6fe2-441c-8c8c-71466251a162
上级 3df3f6fd
...@@ -391,11 +391,11 @@ static inline int testandset (int *p) ...@@ -391,11 +391,11 @@ static inline int testandset (int *p)
{ {
int ret; int ret;
__asm__ __volatile__ ( __asm__ __volatile__ (
"0: lwarx %0,0,%1 ;" "0: lwarx %0,0,%1\n"
" xor. %0,%3,%0;" " xor. %0,%3,%0\n"
" bne 1f;" " bne 1f\n"
" stwcx. %2,0,%1;" " stwcx. %2,0,%1\n"
" bne- 0b;" " bne- 0b\n"
"1: " "1: "
: "=&r" (ret) : "=&r" (ret)
: "r" (p), "r" (1), "r" (0) : "r" (p), "r" (1), "r" (0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册