Skip to content

Commit d6747dd

Browse files
anchaojerpelea
authored andcommitted
libc/armv8-m: fix build break if MVE is disabled
machine/arm/armv8-m/gnu/arch_memcpy.S: Assembler messages: machine/arm/armv8-m/gnu/arch_memcpy.S:105: Error: bad instruction `prologue push_ip=HAVE_PAC_LEAF' machine/arm/armv8-m/gnu/arch_memcpy.S:121: Error: bad instruction `epilogue push_ip=HAVE_PAC_LEAF' make[1]: *** [Makefile:143: bin/arch_memcpy.o] Error Signed-off-by: chao an <[email protected]>
1 parent 91d34ff commit d6747dd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libs/libc/machine/arm/armv8-m/gnu/arch_memcpy.S

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
*
3030
****************************************************************************/
3131

32-
#ifndef __ARM_FEATURE_MVE
3332
/* This memcpy routine is optimised for Cortex-M3/M4 cores with/without
3433
unaligned access.
3534

@@ -50,8 +49,11 @@
5049
__OPT_BIG_BLOCK_SIZE: Size of big block in words. Default to 64.
5150
__OPT_MID_BLOCK_SIZE: Size of big block in words. Default to 16.
5251
*/
52+
5353
#include "arm_asm.h"
5454

55+
#ifndef __ARM_FEATURE_MVE
56+
5557
#ifndef __OPT_BIG_BLOCK_SIZE
5658
#define __OPT_BIG_BLOCK_SIZE (4 * 16)
5759
#endif

0 commit comments

Comments
 (0)