Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/common/lib/libc/arch/aarch64/string port-arm/57388: Minor bu...



details:   https://anonhg.NetBSD.org/src/rev/c78ea9626d64
branches:  trunk
changeset: 378155:c78ea9626d64
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Jul 23 07:54:37 2023 +0000

description:
port-arm/57388: Minor bug fix in bcopy.S

Use correct register to check alignment of destination in backwards copy.

Patch from Antoni Pokusinski. Thanks.

diffstat:

 common/lib/libc/arch/aarch64/string/bcopy.S |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2ba1dfcd5d9e -r c78ea9626d64 common/lib/libc/arch/aarch64/string/bcopy.S
--- a/common/lib/libc/arch/aarch64/string/bcopy.S       Sun Jul 23 07:25:36 2023 +0000
+++ b/common/lib/libc/arch/aarch64/string/bcopy.S       Sun Jul 23 07:54:37 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bcopy.S,v 1.2 2020/04/11 05:12:52 ryo Exp $ */
+/* $NetBSD: bcopy.S,v 1.3 2023/07/23 07:54:37 skrll Exp $ */
 
 /*
  * Copyright (c) 2018 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -29,7 +29,7 @@
 #include <machine/asm.h>
 
 #if defined(LIBC_SCCS)
-RCSID("$NetBSD: bcopy.S,v 1.2 2020/04/11 05:12:52 ryo Exp $")
+RCSID("$NetBSD: bcopy.S,v 1.3 2023/07/23 07:54:37 skrll Exp $")
 #endif
 
 #if defined(MEMCOPY)
@@ -306,7 +306,7 @@ 1:  sub     LEN, LEN, #1
        ret
 9:
        /* length is small(<32), and src or dst may be unaligned */
-       eor     TMP_X, SRC0, DST0
+       eor     TMP_X, SRC0, DST
        ands    TMP_X, TMP_X, #7
        bne     notaligned_backward_small
 



Home | Main Index | Thread Index | Old Index