csky: Add C based string functions
authorMatteo Croce <mcroce@microsoft.com>
Wed, 30 Mar 2022 12:07:14 +0000 (20:07 +0800)
committerGuo Ren <guoren@linux.alibaba.com>
Mon, 18 Apr 2022 13:23:55 +0000 (21:23 +0800)
commite4df2d5e852a7d24df3672ae9951eb79e179be08
tree304debe8a13e6d07a56b7f97ac9eb92d8ddd95d7
parentcfb24463a53edeb388f3563e166ad7f9591dad3d
csky: Add C based string functions

Try to access RAM with the largest bit width possible, but without
doing unaligned accesses.

A further improvement could be to use multiple read and writes as the
assembly version was trying to do.

Tested on a BeagleV Starlight with a SiFive U74 core, where the
improvement is noticeable.

Signed-off-by: Matteo Croce <mcroce@microsoft.com>
Co-developed-by: Guo Ren <guoren@linux.alibaba.com>
Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
arch/csky/Kconfig
arch/csky/abiv1/Makefile
arch/csky/abiv1/memcpy.S [deleted file]
arch/csky/abiv1/strksyms.c [deleted file]
arch/csky/abiv2/Makefile
arch/csky/abiv2/strksyms.c
arch/csky/lib/Makefile
arch/csky/lib/string.c [new file with mode: 0644]