Commit 02e1ec9bc4f9bb54f88840e6cdcc3c15953dd898
1 parent
3df3f6fd
Mac OS X port (Pierre d'Herbemont)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@994 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
5 additions
and
5 deletions
exec-all.h
... | ... | @@ -391,11 +391,11 @@ static inline int testandset (int *p) |
391 | 391 | { |
392 | 392 | int ret; |
393 | 393 | __asm__ __volatile__ ( |
394 | - "0: lwarx %0,0,%1 ;" | |
395 | - " xor. %0,%3,%0;" | |
396 | - " bne 1f;" | |
397 | - " stwcx. %2,0,%1;" | |
398 | - " bne- 0b;" | |
394 | + "0: lwarx %0,0,%1\n" | |
395 | + " xor. %0,%3,%0\n" | |
396 | + " bne 1f\n" | |
397 | + " stwcx. %2,0,%1\n" | |
398 | + " bne- 0b\n" | |
399 | 399 | "1: " |
400 | 400 | : "=&r" (ret) |
401 | 401 | : "r" (p), "r" (1), "r" (0) | ... | ... |