summaryrefslogtreecommitdiffstats
path: root/newlib/libc/machine/arm/memcpy.S
diff options
context:
space:
mode:
authorMarcus Shawcroft <marcus.shawcroft@arm.com>2015-11-03 11:02:15 +0000
committerMarcus Shawcroft <marcus.shawcroft@arm.com>2015-11-03 11:04:55 +0000
commit0a4019eed22c1d84a87dd39370e56db2f19fe35a (patch)
tree7fb6c959e8e09f50930302e5d233a1bba59b4472 /newlib/libc/machine/arm/memcpy.S
parent06312793945e184036b9491767b9eacac9be3890 (diff)
downloadcygnal-0a4019eed22c1d84a87dd39370e56db2f19fe35a.tar.gz
cygnal-0a4019eed22c1d84a87dd39370e56db2f19fe35a.tar.bz2
cygnal-0a4019eed22c1d84a87dd39370e56db2f19fe35a.zip
[ARM] Select appropriate memcpy implementation for ARMv8-a.
The newlib configury logic that detects architecture version and chooses an appropriate memcpy implementation does not consider ARMv8-a. This patch adds configury logic to detect ARMv8-a along with the associated changes in Makefile.am and memcpy.
Diffstat (limited to 'newlib/libc/machine/arm/memcpy.S')
-rw-r--r--newlib/libc/machine/arm/memcpy.S5
1 files changed, 3 insertions, 2 deletions
diff --git a/newlib/libc/machine/arm/memcpy.S b/newlib/libc/machine/arm/memcpy.S
index 399752424..b1bab88bf 100644
--- a/newlib/libc/machine/arm/memcpy.S
+++ b/newlib/libc/machine/arm/memcpy.S
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013 ARM Ltd
+ * Copyright (c) 2013-2015 ARM Ltd
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -40,7 +40,8 @@
lib_a-memcpy.o to be generated.
*/
-#elif defined (__ARM_ARCH_7A__) && defined (__ARM_FEATURE_UNALIGNED)
+#elif (__ARM_ARCH >= 7 && __ARM_ARCH_PROFILE == 'A' \
+ && defined (__ARM_FEATURE_UNALIGNED))
#include "memcpy-armv7a.S"
#elif defined (__ARM_ARCH_7M__) || defined (__ARM_ARCH_7EM__)