diff options
author | Meng Zhuo <mzh@golangcn.org> | 2021-11-07 21:37:25 +0800 |
---|---|---|
committer | mzh <mzh@golangcn.org> | 2022-04-24 01:22:21 +0000 |
commit | 96c8cc7fea94dca8c9e23d9653157e960f2ff472 (patch) | |
tree | 17734f2ca778b0cb2425ee5bb5a9892acf7e2481 | |
parent | e6dfdbd11d5dcc9f918150552f50ca6cd524b89b (diff) | |
download | go-96c8cc7fea94dca8c9e23d9653157e960f2ff472.tar.gz go-96c8cc7fea94dca8c9e23d9653157e960f2ff472.zip |
runtime: add ABIInternal to strhash and memhash on riscv64
This CL fixes regression of strhash and memhash on riscv64
Change-Id: Icc10431a8199c8b1eb7b440cb42be4e53420e171
Reviewed-on: https://go-review.googlesource.com/c/go/+/362134
Run-TryBot: mzh <mzh@golangcn.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
-rw-r--r-- | src/runtime/asm_riscv64.s | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/runtime/asm_riscv64.s b/src/runtime/asm_riscv64.s index 9052649c9e..00caa9f18a 100644 --- a/src/runtime/asm_riscv64.s +++ b/src/runtime/asm_riscv64.s @@ -213,14 +213,14 @@ TEXT runtime·morestack_noctxt(SB),NOSPLIT|NOFRAME,$0-0 JMP runtime·morestack(SB) // AES hashing not implemented for riscv64 -TEXT runtime·memhash(SB),NOSPLIT|NOFRAME,$0-32 - JMP runtime·memhashFallback(SB) -TEXT runtime·strhash(SB),NOSPLIT|NOFRAME,$0-24 - JMP runtime·strhashFallback(SB) -TEXT runtime·memhash32(SB),NOSPLIT|NOFRAME,$0-24 - JMP runtime·memhash32Fallback(SB) -TEXT runtime·memhash64(SB),NOSPLIT|NOFRAME,$0-24 - JMP runtime·memhash64Fallback(SB) +TEXT runtime·memhash<ABIInternal>(SB),NOSPLIT|NOFRAME,$0-32 + JMP runtime·memhashFallback<ABIInternal>(SB) +TEXT runtime·strhash<ABIInternal>(SB),NOSPLIT|NOFRAME,$0-24 + JMP runtime·strhashFallback<ABIInternal>(SB) +TEXT runtime·memhash32<ABIInternal>(SB),NOSPLIT|NOFRAME,$0-24 + JMP runtime·memhash32Fallback<ABIInternal>(SB) +TEXT runtime·memhash64<ABIInternal>(SB),NOSPLIT|NOFRAME,$0-24 + JMP runtime·memhash64Fallback<ABIInternal>(SB) // func return0() TEXT runtime·return0(SB), NOSPLIT, $0 |