aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mkduff.go
diff options
context:
space:
mode:
authorCherry Zhang <cherryyz@google.com>2020-03-31 19:13:39 -0400
committerCherry Zhang <cherryyz@google.com>2020-03-31 23:54:09 +0000
commit7939c43748932c0caf1a1538410eb70fcd5a705f (patch)
tree74049900f02d6d97616707ff9f20799ec2e47fcf /src/runtime/mkduff.go
parent6edd7971bb3e83356544b2cd6e7a93fdabff1246 (diff)
downloadgo-7939c43748932c0caf1a1538410eb70fcd5a705f.tar.xz
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>
Diffstat (limited to 'src/runtime/mkduff.go')
-rw-r--r--src/runtime/mkduff.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/runtime/mkduff.go b/src/runtime/mkduff.go
index 6ac5e7da44..6c7a4cf8dc 100644
--- a/src/runtime/mkduff.go
+++ b/src/runtime/mkduff.go
@@ -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) {