software/libbase: memcpy: simple, arch-width agnostic implementation
authorGabriel L. Somlo <gsomlo@gmail.com>
Tue, 4 Jun 2019 18:42:54 +0000 (14:42 -0400)
committerGabriel L. Somlo <gsomlo@gmail.com>
Tue, 4 Jun 2019 18:48:51 +0000 (14:48 -0400)
commitf88b85a31cd1e02e9efa52fdacfc004152a88aa3
treed51c4f6972e1269662c91d319cc7bc63fa7b362d
parent42e9d097551b987a0c864b843c7c303021bfe1ea
software/libbase: memcpy: simple, arch-width agnostic implementation

Remove optimizations targeted specifically at rv32 architecture,
allowing memcpy to work on all word sizes.

Since this is "only" the BIOS, it is also arguably better to
optimize for size rather than performance, given that control
will be quickly handed over to some other program being loaded.

Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
litex/soc/software/libbase/libc.c