summaryrefslogtreecommitdiff
path: root/exec-all.h
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-05-10 00:33:40 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-05-10 00:33:40 +0000
commit976a0d0d0d8f8a6f5ba3ac097e8bc4429bd370ae (patch)
tree81b2984c54ab4f4f4c70e759a63e140c7ec7a5c3 /exec-all.h
parent9e315fa93c14d6da7dc5b8fef193a671b51defd8 (diff)
Fix wrong branch condition in MIPS testandset.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2798 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'exec-all.h')
-rw-r--r--exec-all.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/exec-all.h b/exec-all.h
index d6bbbd20b4..863ca3bdb3 100644
--- a/exec-all.h
+++ b/exec-all.h
@@ -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)
: