Skip to content

Commit

Permalink
[mips] replace beqzl with beqzc for r6
Browse files Browse the repository at this point in the history
  • Loading branch information
wzssyqa committed May 25, 2019
1 parent c9d0702 commit 3fd1c0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/linux-lock.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,12 @@ static inline void __raw_spin_lock(volatile unsigned int *lock)
" bnez %1, 1b \n"
" li %1, 1 \n"
" sc %1, %0 \n"
#if __mips_isa_rev < 6
" beqzl %1, 1b \n"
" nop \n"
#else
" beqzc %1,1b \n"
#endif
" sync \n"
" .set reorder \n"
: "=m" (*lock), "=&r" (tmp)
Expand Down

0 comments on commit 3fd1c0c

Please sign in to comment.