aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mkduff.go
diff options
context:
space:
mode:
authorMeng Zhuo <mzh@golangcn.org>2021-11-03 15:04:13 +0800
committermzh <mzh@golangcn.org>2022-03-30 01:12:57 +0000
commit8fefeabb358395fb3e592e9403339552880e0872 (patch)
treeda558b6e0e868932348e100ca14f6ec565947e82 /src/runtime/mkduff.go
parent7cb1ae3e8e4bc4d80d711b5180705af556c95843 (diff)
downloadgo-8fefeabb358395fb3e592e9403339552880e0872.tar.xz
runtime: add runtime changes for register ABI on riscv64
This CL adds - spill functions used by runtime - ABIInternal to functions Adding new stubs_riscv64 file to eliminate vet issues while compiling. Change-Id: I2a9f6088a1cd2d9708f26b2d97895b4e5f9f87e9 Reviewed-on: https://go-review.googlesource.com/c/go/+/360296 Trust: mzh <mzh@golangcn.org> Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/runtime/mkduff.go')
-rw-r--r--src/runtime/mkduff.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/mkduff.go b/src/runtime/mkduff.go
index e1c01fffce..f1e4ed75d0 100644
--- a/src/runtime/mkduff.go
+++ b/src/runtime/mkduff.go
@@ -237,7 +237,7 @@ func zeroRISCV64(w io.Writer) {
// ZERO: always zero
// X25: ptr to memory to be zeroed
// X25 is updated as a side effect.
- fmt.Fprintln(w, "TEXT runtime·duffzero(SB), NOSPLIT|NOFRAME, $0-0")
+ fmt.Fprintln(w, "TEXT runtime·duffzero<ABIInternal>(SB), NOSPLIT|NOFRAME, $0-0")
for i := 0; i < 128; i++ {
fmt.Fprintln(w, "\tMOV\tZERO, (X25)")
fmt.Fprintln(w, "\tADD\t$8, X25")
@@ -249,7 +249,7 @@ func copyRISCV64(w io.Writer) {
// X24: ptr to source memory
// X25: ptr to destination memory
// X24 and X25 are updated as a side effect
- fmt.Fprintln(w, "TEXT runtime·duffcopy(SB), NOSPLIT|NOFRAME, $0-0")
+ fmt.Fprintln(w, "TEXT runtime·duffcopy<ABIInternal>(SB), NOSPLIT|NOFRAME, $0-0")
for i := 0; i < 128; i++ {
fmt.Fprintln(w, "\tMOV\t(X24), X31")
fmt.Fprintln(w, "\tADD\t$8, X24")