diff options
| author | Guoqi Chen <chenguoqi@loongson.cn> | 2023-08-15 20:54:16 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-11-21 19:04:21 +0000 |
| commit | 3107fa99acdcf26394e4bd96a176622d4034b10f (patch) | |
| tree | b9a77b643909991e00cfd0ea84961d9b9b2dd610 /src | |
| parent | 6b77d1b73694b50f2eccc1a2e1e09cc951393cce (diff) | |
| download | go-3107fa99acdcf26394e4bd96a176622d4034b10f.tar.xz | |
runtime: make duff device as ABIInternal for loong64
Update #40724
Co-authored-by: Xiaolin Zhao <zhaoxiaolin@loongson.cn>
Change-Id: I243e60489dc5fd162ad91d6426bf32cf0e13d9e2
Reviewed-on: https://go-review.googlesource.com/c/go/+/521782
Reviewed-by: Meidan Li <limeidan@loongson.cn>
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: David Chase <drchase@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: David Chase <drchase@google.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/runtime/duff_loong64.s | 4 | ||||
| -rw-r--r-- | src/runtime/mkduff.go | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/runtime/duff_loong64.s b/src/runtime/duff_loong64.s index df8b653965..b05502d91d 100644 --- a/src/runtime/duff_loong64.s +++ b/src/runtime/duff_loong64.s @@ -4,7 +4,7 @@ #include "textflag.h" -TEXT runtime·duffzero(SB), NOSPLIT|NOFRAME, $0-0 +TEXT runtime·duffzero<ABIInternal>(SB), NOSPLIT|NOFRAME, $0-0 MOVV R0, (R20) ADDV $8, R20 MOVV R0, (R20) @@ -263,7 +263,7 @@ TEXT runtime·duffzero(SB), NOSPLIT|NOFRAME, $0-0 ADDV $8, R20 RET -TEXT runtime·duffcopy(SB), NOSPLIT|NOFRAME, $0-0 +TEXT runtime·duffcopy<ABIInternal>(SB), NOSPLIT|NOFRAME, $0-0 MOVV (R20), R30 ADDV $8, R20 MOVV R30, (R21) diff --git a/src/runtime/mkduff.go b/src/runtime/mkduff.go index 77674254d4..b7f07b5087 100644 --- a/src/runtime/mkduff.go +++ b/src/runtime/mkduff.go @@ -181,7 +181,7 @@ func zeroLOONG64(w io.Writer) { // R0: always zero // R19 (aka REGRT1): ptr to memory to be zeroed // On return, R19 points to the last zeroed dword. - 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, "\tMOVV\tR0, (R20)") fmt.Fprintln(w, "\tADDV\t$8, R20") @@ -190,7 +190,7 @@ func zeroLOONG64(w io.Writer) { } func copyLOONG64(w io.Writer) { - 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, "\tMOVV\t(R20), R30") fmt.Fprintln(w, "\tADDV\t$8, R20") |
