* libc/machine/mips/strlen.c (strlen): Add delay slot for R3000.

This commit is contained in:
Corinna Vinschen 2011-01-10 12:11:55 +00:00
parent 33cdc2a420
commit 1991358fe5
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2011-01-10 Corinna Vinschen <vinschen@redhat.com>
* libc/machine/mips/strlen.c (strlen): Add delay slot for R3000.
2011-01-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* libc/include/string.h: Make strsignal() available unconditionally.

View File

@ -60,6 +60,9 @@ __asm__("" /* 32-bit MIPS targets */
" addiu $2,$4,1\n"
"\n"
"1: lbu $3,0($4)\n"
#if defined(_R3000)
" nop \n"
#endif
" bnez $3,1b\n"
" addiu $4,$4,1\n"
"\n"