aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mkduff.go
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2018-01-25 12:15:23 -0500
committerAustin Clements <austin@google.com>2018-02-12 21:41:32 +0000
commitdfbf568c9f71d5fadfebaa206ab8341168f582d9 (patch)
tree4aec4b68c37ebf51c0d6740b68d1a9d9730c772a /src/runtime/mkduff.go
parentbeeabbcb2501c89db48a60681183ad161763db79 (diff)
downloadgo-dfbf568c9f71d5fadfebaa206ab8341168f582d9.tar.gz
go-dfbf568c9f71d5fadfebaa206ab8341168f582d9.zip
runtime: use NOFRAME on mips and mips64
This replaces frame size -4/-8 with the NOFRAME flag in mips and mips64 assembly. This was automated with: sed -i -e 's/\(^TEXT.*[A-Z]\),\( *\)\$-[84]/\1|NOFRAME,\2$0/' $(find -name '*_mips*.s') Plus a manual fix to mkduff.go. The go binary is identical on both architectures before and after this change. Change-Id: I0310384d1a584118c41d1cd3a042bb8ea7227efb Reviewed-on: https://go-review.googlesource.com/92044 Run-TryBot: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/runtime/mkduff.go')
-rw-r--r--src/runtime/mkduff.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/mkduff.go b/src/runtime/mkduff.go
index dc7262f7b0..fcc7f83197 100644
--- a/src/runtime/mkduff.go
+++ b/src/runtime/mkduff.go
@@ -206,7 +206,7 @@ func zeroMIPS64x(w io.Writer) {
// R0: always zero
// R1 (aka REGRT1): ptr to memory to be zeroed - 8
// On return, R1 points to the last zeroed dword.
- fmt.Fprintln(w, "TEXT runtime·duffzero(SB), NOSPLIT, $-8-0")
+ fmt.Fprintln(w, "TEXT runtime·duffzero(SB), NOSPLIT|NOFRAME, $0-0")
for i := 0; i < 128; i++ {
fmt.Fprintln(w, "\tMOVV\tR0, 8(R1)")
fmt.Fprintln(w, "\tADDV\t$8, R1")