From 557f663a8cb7de8cbbfa9ce63b2c956bcaad194c Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 29 May 2016 08:53:18 +0200 Subject: mips: allow to disable prefetch support in memcpy/memset There exist some problem with the new memcpy/memset functions imported from GNU libc/newlib. If you have any problem with the new MIPS optimized assembly try to disable prefetching support. Thanks to Rene Nielsen and Matthew Fortune analyzing the problem so far. --- libc/string/mips/memcpy.S | 2 +- libc/string/mips/memset.S | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'libc/string') diff --git a/libc/string/mips/memcpy.S b/libc/string/mips/memcpy.S index 59f9f0a3a..3825875f1 100644 --- a/libc/string/mips/memcpy.S +++ b/libc/string/mips/memcpy.S @@ -39,7 +39,7 @@ #if (_MIPS_ISA == _MIPS_ISA_MIPS4) || (_MIPS_ISA == _MIPS_ISA_MIPS5) || \ (_MIPS_ISA == _MIPS_ISA_MIPS32) || (_MIPS_ISA == _MIPS_ISA_MIPS64) -# ifndef DISABLE_PREFETCH +# ifdef __UCLIBC_USE_MIPS_PREFETCH__ # define USE_PREFETCH # endif #endif diff --git a/libc/string/mips/memset.S b/libc/string/mips/memset.S index 43034cebb..1c9f14c8c 100644 --- a/libc/string/mips/memset.S +++ b/libc/string/mips/memset.S @@ -37,7 +37,7 @@ prefetching. */ #if (__mips == 4) || (__mips == 5) || (__mips == 32) || (__mips == 64) -# ifndef DISABLE_PREFETCH +# ifdef __UCLIBC_USE_MIPS_PREFETCH__ # define USE_PREFETCH # endif #endif -- cgit v1.2.3