From: Joel Sing Date: Thu, 2 Nov 2023 10:46:38 +0000 (+1100) Subject: runtime: remove getcallerpc on riscv64 X-Git-Tag: go1.22rc1~436 X-Git-Url: http://www.git.cypherpunks.ru/?a=commitdiff_plain;h=642b1311111ef949f54606317ec447838c29024c;p=gostls13.git runtime: remove getcallerpc on riscv64 This was converted to a compiler intrinsic and no longer needs to exist in assembly. Change-Id: I7495c435d4642e0e71d8f7677d70af3a3ca2a6ba Reviewed-on: https://go-review.googlesource.com/c/go/+/539195 Run-TryBot: Joel Sing TryBot-Result: Gopher Robot Reviewed-by: Cherry Mui Reviewed-by: David Chase --- diff --git a/src/runtime/asm_riscv64.s b/src/runtime/asm_riscv64.s index 8ded78437b..e37c8a1e1f 100644 --- a/src/runtime/asm_riscv64.s +++ b/src/runtime/asm_riscv64.s @@ -148,11 +148,6 @@ noswitch: ADD $8, X2 JMP (T1) -TEXT runtime·getcallerpc(SB),NOSPLIT|NOFRAME,$0-8 - MOV 0(X2), T0 // LR saved by caller - MOV T0, ret+0(FP) - RET - // func switchToCrashStack0(fn func()) TEXT runtime·switchToCrashStack0(SB), NOSPLIT, $0-8 MOV X10, CTXT // context register