projects
/
qemu
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e315fa
)
Fix wrong branch condition in MIPS testandset.
author
ths
<ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 10 May 2007 00:33:40 +0000
(
00:33
+0000)
committer
ths
<ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 10 May 2007 00:33:40 +0000
(
00:33
+0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2798
c046a42c
-6fe2-441c-8c8c-
71466251a162
exec-all.h
patch
|
blob
|
history
diff --git
a/exec-all.h
b/exec-all.h
index
d6bbbd2
..
863ca3b
100644
(file)
--- 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)
: