This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit ddc108330af15f7ae935810283ed32db51a03634 Author: Saravanan Sekar <[email protected]> AuthorDate: Thu Oct 29 19:04:02 2026 +0530 libc/tricore: Target TC1.8 only on TC1.8 cores. memcpy, memset and memmove use TC1.8 instructions (st.dd), which a TC1.6.2 core like the TC397 does not have. The TASKING assembler rejects them with "TC1.8 instructions are not allowed", the GNU one without -mtc18. The other routines assemble for TC1.6.2 as well, so offer only those three on TC1.8 cores. Signed-off-by: Saravanan Sekar <[email protected]> --- libs/libc/machine/tricore/Kconfig | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libs/libc/machine/tricore/Kconfig b/libs/libc/machine/tricore/Kconfig index 2cc9a9b8dfb..8dc530d8ebc 100644 --- a/libs/libc/machine/tricore/Kconfig +++ b/libs/libc/machine/tricore/Kconfig @@ -6,9 +6,9 @@ config TRICORE_STRING_FUNCTION bool "Enable optimized TriCore specific string/memory functions" default n - select TRICORE_MEMCPY - select TRICORE_MEMSET - select TRICORE_MEMMOVE + select TRICORE_MEMCPY if ARCH_TC1V8 + select TRICORE_MEMSET if ARCH_TC1V8 + select TRICORE_MEMMOVE if ARCH_TC1V8 select TRICORE_MEMCMP select TRICORE_MEMCHR select TRICORE_STRCMP @@ -37,6 +37,7 @@ config TRICORE_STRING_FUNCTION config TRICORE_MEMCPY bool "Enable optimized memcpy() for TriCore" + depends on ARCH_TC1V8 default n select LIBC_ARCH_MEMCPY ---help--- @@ -45,6 +46,7 @@ config TRICORE_MEMCPY config TRICORE_MEMSET bool "Enable optimized memset() for TriCore" + depends on ARCH_TC1V8 default n select LIBC_ARCH_MEMSET ---help--- @@ -52,6 +54,7 @@ config TRICORE_MEMSET config TRICORE_MEMMOVE bool "Enable optimized memmove() for TriCore" + depends on ARCH_TC1V8 default n select LIBC_ARCH_MEMMOVE ---help---
