This is the mail archive of the newlib-cvs@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[newlib-cygwin] arc: Use prefetch instead of prealloc.


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=7b1080d9aa6ecb858df12c138da51ba56fbf40be

commit 7b1080d9aa6ecb858df12c138da51ba56fbf40be
Author: Claudiu Zissulescu <claziss@synopsys.com>
Date:   Tue Apr 26 15:27:31 2016 +0200

    arc: Use prefetch instead of prealloc.
    
    Prealloc instruction may not be present in all HS variants. Hence, use
    prefetch instead of prealloc.
    
    newlib/
    2016-04-26  Claudiu Zissulescu  <claziss@synopsys.com>
    
    	* libc/machine/arc/memset-archs.S: Use prefetch.

Diff:
---
 newlib/libc/machine/arc/memset-archs.S | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/newlib/libc/machine/arc/memset-archs.S b/newlib/libc/machine/arc/memset-archs.S
index 188b5c4..dc912aa 100644
--- a/newlib/libc/machine/arc/memset-archs.S
+++ b/newlib/libc/machine/arc/memset-archs.S
@@ -37,6 +37,8 @@
 
 #ifdef __ARCHS__
 
+#define USE_PREFETCH
+
 #ifdef USE_PREFETCH
 #define PREWRITE(A,B)	prefetchw [(A),(B)]
 #else


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]