From: Meng Zhuo Date: Sun, 7 Nov 2021 13:37:25 +0000 (+0800) Subject: runtime: add ABIInternal to strhash and memhash on riscv64 X-Git-Tag: go1.19beta1~559 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=96c8cc7fea94dca8c9e23d9653157e960f2ff472;p=gostls13.git 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 TryBot-Result: Gopher Robot Reviewed-by: Cherry Mui Reviewed-by: Russ Cox --- 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(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) // func return0() TEXT runtime·return0(SB), NOSPLIT, $0