Shanks0224 opened a new pull request, #22184: URL: https://github.com/apache/nuttx/pull/22184
Refresh arch_memcpy.S from the GPR-only routine to the Advanced SIMD (Q register) variant: a forward-only copy processing 64 bytes per iteration, which speeds up the medium/large path and reduces code size. As memcpy now uses SIMD like memset/memchr/strchr already do, guard those six SIMD functions with ARCH_FPU in Kconfig so they are not selectable when the kernel omits FPU save/restore, avoiding silent corruption of user FPU state in interrupt context. *Note: Please adhere to [Contributing Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).* ## Summary Optimize the arm64 `memcpy()` with Advanced SIMD. It is selected by `CONFIG_ARM64_MEMCPY` and requires `CONFIG_ARCH_FPU`. ## Impact - Opt-in only; the default configuration is unchanged. - No impact on the build system, documentation or hardware. ## Testing Build host: Linux x86_64. - `qemu-armv8a:nsh` on QEMU with `ARM64_STRING_FUNCTION`, 11976 cases over offsets, lengths and overlaps: 0 failures. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
