mirror of
https://github.com/apache/nuttx.git
synced 2025-12-08 02:32:54 +08:00
libs/libc: Fix Kconfig issue for memcpy and memset
Fix an issue on ARMv8-R where NEON is not supported.
When NEON is disabled, the assembly-optimized implementations
of memset and memcpy should not be used.
Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>
This commit is contained in:
committed by
Alin Jerpelea
parent
190daef2bf
commit
f82f71d180
@@ -8,9 +8,9 @@ config ARMV8R_STRING_FUNCTION
|
||||
default n
|
||||
depends on ARCH_TOOLCHAIN_GNU
|
||||
select ARMV8R_MEMCHR
|
||||
select ARMV8R_MEMCPY
|
||||
select ARMV8R_MEMCPY if ARM_NEON
|
||||
select ARMV8R_MEMMOVE
|
||||
select ARMV8R_MEMSET
|
||||
select ARMV8R_MEMSET if ARM_NEON
|
||||
select ARMV8R_STRCMP
|
||||
select ARMV8R_STRLEN
|
||||
|
||||
@@ -19,6 +19,7 @@ config ARMV8R_MEMCHR
|
||||
default n
|
||||
select LIBC_ARCH_MEMCHR
|
||||
depends on ARCH_TOOLCHAIN_GNU
|
||||
depends on ARM_NEON
|
||||
---help---
|
||||
Enable optimized ARMv8-R specific memchr() library function
|
||||
|
||||
|
||||
Reference in New Issue
Block a user