diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2011-01-10 15:11:55 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2011-01-10 15:11:55 +0300 |
commit | 1991358fe561f3cf204c7b3a130fd22e9a71ca1b (patch) | |
tree | 70f938a97471212b9833da8b689e8a7e8a57e318 /newlib/libc/machine | |
parent | 33cdc2a420e827d0bc5bbfeb9c662a5bfa09f1b3 (diff) |
* libc/machine/mips/strlen.c (strlen): Add delay slot for R3000.
Diffstat (limited to 'newlib/libc/machine')
-rw-r--r-- | newlib/libc/machine/mips/strlen.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/newlib/libc/machine/mips/strlen.c b/newlib/libc/machine/mips/strlen.c index 158fb9f3f..a87bddd11 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" |