aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/machine/mips/strlen.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/machine/mips/strlen.c')
-rw-r--r--newlib/libc/machine/mips/strlen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/newlib/libc/machine/mips/strlen.c b/newlib/libc/machine/mips/strlen.c
index 158fb9f..a87bddd 100644
--- a/newlib/libc/machine/mips/strlen.c
+++ b/newlib/libc/machine/mips/strlen.c
@@ -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"