From 976a0d0d0d8f8a6f5ba3ac097e8bc4429bd370ae Mon Sep 17 00:00:00 2001 From: ths Date: Thu, 10 May 2007 00:33:40 +0000 Subject: Fix wrong branch condition in MIPS testandset. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2798 c046a42c-6fe2-441c-8c8c-71466251a162 --- exec-all.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'exec-all.h') diff --git a/exec-all.h b/exec-all.h index d6bbbd20b..863ca3bdb 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) : -- cgit v1.2.3