mirror of
https://github.com/golang/go
synced 2024-11-18 11:44:45 -07:00
runtime: generate dummy duffcopy
Although duffcopy is not used on PPC64, duff_ppc64x.s and mkduff.go don't match. Make it so. Fixes #38188. Change-Id: Ic6c08e335795ea407880efd449f4229696af7744 Reviewed-on: https://go-review.googlesource.com/c/go/+/226719 Run-TryBot: Cherry Zhang <cherryyz@google.com> Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
6edd7971bb
commit
7939c43748
@ -137,7 +137,5 @@ TEXT runtime·duffzero(SB), NOSPLIT|NOFRAME, $0-0
|
||||
MOVDU R0, 8(R3)
|
||||
RET
|
||||
|
||||
// TODO: Implement runtime·duffcopy.
|
||||
TEXT runtime·duffcopy(SB),NOSPLIT|NOFRAME,$0-0
|
||||
MOVD R0, 0(R0)
|
||||
RET
|
||||
TEXT runtime·duffcopy(SB), NOSPLIT|NOFRAME, $0-0
|
||||
UNDEF
|
||||
|
@ -194,7 +194,9 @@ func zeroPPC64x(w io.Writer) {
|
||||
}
|
||||
|
||||
func copyPPC64x(w io.Writer) {
|
||||
fmt.Fprintln(w, "// TODO: Implement runtime·duffcopy.")
|
||||
// duffcopy is not used on PPC64.
|
||||
fmt.Fprintln(w, "TEXT runtime·duffcopy(SB), NOSPLIT|NOFRAME, $0-0")
|
||||
fmt.Fprintln(w, "\tUNDEF")
|
||||
}
|
||||
|
||||
func tagsMIPS64x(w io.Writer) {
|
||||
|
Loading…
Reference in New Issue
Block a user