arm64: memset-arm64: Use simple memset when cache is disabled
authorStefan Roese <sr@denx.de>
Thu, 2 Sep 2021 15:00:18 +0000 (17:00 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 24 Sep 2021 11:48:06 +0000 (07:48 -0400)
commit1e43bb67325f708c6bbfa64f584b29f865ee634c
tree9c4c2bd0a7c9c956d90a838c76cb77d595fc660e
parentdbf6b14e0a388330b0a0cb472e1bd5c8b5d711a4
arm64: memset-arm64: Use simple memset when cache is disabled

The optimized memset uses the dc opcode, which causes problems when the
cache is disabled. This patch adds a check if the cache is disabled and
uses a very simple memset implementation in this case. Otherwise the
optimized version is used.

Signed-off-by: Stefan Roese <sr@denx.de>
arch/arm/lib/memset-arm64.S