]> Cypherpunks.ru repositories - gostls13.git/commitdiff
runtime: remove getcallerpc on riscv64
authorJoel Sing <joel@sing.id.au>
Thu, 2 Nov 2023 10:46:38 +0000 (21:46 +1100)
committerJoel Sing <joel@sing.id.au>
Fri, 3 Nov 2023 07:49:36 +0000 (07:49 +0000)
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 <joel@sing.id.au>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: David Chase <drchase@google.com>
src/runtime/asm_riscv64.s

index 8ded78437bbf3919ac01a8abc205a4a8a512e29e..e37c8a1e1f15aa5bff6f8024432109d2c4fe3e9c 100644 (file)
@@ -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<ABIInternal>(SB), NOSPLIT, $0-8
        MOV     X10, CTXT                       // context register