From 47e792e22eb0dd85c0197e32c2791f252be7244d Mon Sep 17 00:00:00 2001 From: Guoqi Chen Date: Mon, 30 May 2022 18:44:57 +0800 Subject: [PATCH] runtime: clean up unused function gosave on loong64 Change-Id: I28960a33d251a36e5e364fa6e27c5b2e13349f6b Reviewed-on: https://go-review.googlesource.com/c/go/+/409354 TryBot-Result: Gopher Robot Reviewed-by: David Chase Reviewed-by: Michael Pratt Run-TryBot: David Chase --- src/runtime/asm_loong64.s | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/runtime/asm_loong64.s b/src/runtime/asm_loong64.s index 068e8e05b36..a6ccd196c9a 100644 --- a/src/runtime/asm_loong64.s +++ b/src/runtime/asm_loong64.s @@ -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