From 2a2e3ece2ff801e8d8e4915a56fe3fff8399d6a0 Mon Sep 17 00:00:00 2001 From: Firas Jahjah Date: Tue, 28 Dec 2021 15:58:37 +0200 Subject: util: Fix mmio memcpy on ARM The below commit added a new implementation of mmio_memcpy_x64() for ARM which was broken. The destination buffer must be advanced so we don't copy to the same 64 bytes. Fixes: 159933c37 ("libhns: Add support for direct wqe") Reviewed-by: Daniel Kranzdorf Reviewed-by: Yossi Leybovich Signed-off-by: Firas Jahjah --- util/mmio.h | 1 + 1 file changed, 1 insertion(+) diff --git a/util/mmio.h b/util/mmio.h index 01d1455..5974058 100644 --- a/util/mmio.h +++ b/util/mmio.h @@ -225,6 +225,7 @@ static inline void _mmio_memcpy_x64(void *dest, const void *src, size_t bytecnt) _mmio_memcpy_x64_64b(dest, src); bytecnt -= sizeof(uint64x2x4_t); src += sizeof(uint64x2x4_t); + dest += sizeof(uint64x2x4_t); } while (bytecnt > 0); } -- 2.27.0