]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: clean up unused function gosave on loong64
authorGuoqi Chen <chenguoqi@loongson.cn>
Mon, 30 May 2022 10:44:57 +0000 (18:44 +0800)
committerDavid Chase <drchase@google.com>
Tue, 28 Jun 2022 16:41:48 +0000 (16:41 +0000)
Change-Id: I28960a33d251a36e5e364fa6e27c5b2e13349f6b
Reviewed-on: https://go-review.googlesource.com/c/go/+/409354
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Run-TryBot: David Chase <drchase@google.com>

src/runtime/asm_loong64.s

index 068e8e05b36865f4b71f9426e0197abe6a8fbf16..a6ccd196c9a365643740c52fa6c07ec911022074 100644 (file)
@@ -90,21 +90,6 @@ TEXT runtime·mstart(SB),NOSPLIT|TOPFRAME,$0
  *  go-routine
  */
 
-// void gosave(Gobuf*)
-// save state in Gobuf; setjmp
-TEXT runtime·gosave(SB), NOSPLIT|NOFRAME, $0-8
-       MOVV    buf+0(FP), R19
-       MOVV    R3, gobuf_sp(R19)
-       MOVV    R1, gobuf_pc(R19)
-       MOVV    g, gobuf_g(R19)
-       MOVV    R0, gobuf_lr(R19)
-       MOVV    R0, gobuf_ret(R19)
-       // Assert ctxt is zero. See func save.
-       MOVV    gobuf_ctxt(R19), R19
-       BEQ     R19, 2(PC)
-       JAL     runtime·badctxt(SB)
-       RET
-
 // void gogo(Gobuf*)
 // restore state from Gobuf; longjmp
 TEXT runtime·gogo(SB), NOSPLIT|NOFRAME, $0-8