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

Corinna Vinschen corinna@sourceware.org
Thu Aug 11 09:00:00 GMT 2016


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



More information about the Newlib-cvs mailing list