Skip to content

Commit

Permalink
Merged in wzssyqa/papi/Yunqiang-Su/mips-replace-beqzl-with-beqzc-for-…
Browse files Browse the repository at this point in the history
…r6-1558769702667 (pull request #9)

[mips] replace beqzl with beqzc for r6
  • Loading branch information
wzssyqa authored and jagode committed May 30, 2019
2 parents c9d0702 + 3fd1c0c commit 2f1165c
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 2f1165c

Please sign in to comment.