]> Cypherpunks repositories - gostls13.git/commit
reflect: fix memmove for big endian cases with new ABI
authorLynn Boger <laboger@linux.vnet.ibm.com>
Fri, 20 Aug 2021 12:01:50 +0000 (07:01 -0500)
committerLynn Boger <laboger@linux.vnet.ibm.com>
Mon, 23 Aug 2021 15:27:42 +0000 (15:27 +0000)
commitf1d8ea1da3ef814ea57b545fc967865640a868ab
treed03d0e27a197d8c0504a57c2bc1f1f1a0c1f0591
parent4fbb5c8666eef0267704dd074763442efb2f7c4a
reflect: fix memmove for big endian cases with new ABI

Some memmoves in reflect/value.go for copying arguments
related to the new ABI were using the address of the target
or source instead of using IntArgRegAddr or FloatArgRegAddr
to adjust the address for big endian.

This was found when testing patches for ppc64 and fixes the
failures that were found.

Change-Id: I119aa090a2a8eb859020ff1a1736107a6d0b76f1
Reviewed-on: https://go-review.googlesource.com/c/go/+/343869
Run-TryBot: Lynn Boger <laboger@linux.vnet.ibm.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Trust: Michael Knyszek <mknyszek@google.com>
Trust: Lynn Boger <laboger@linux.vnet.ibm.com>
src/reflect/value.go