]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: remove arm64 non-register ABI fallback code
authorJoel Sing <joel@sing.id.au>
Sat, 11 Mar 2023 16:12:40 +0000 (03:12 +1100)
committerJoel Sing <joel@sing.id.au>
Fri, 17 Mar 2023 09:07:40 +0000 (09:07 +0000)
This presumably got missed in CL 393875.

Change-Id: I4f2de00ebd6ec405d5e289a7f8c2fc781607260b
Reviewed-on: https://go-review.googlesource.com/c/go/+/475617
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Joel Sing <joel@sing.id.au>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/runtime/sys_freebsd_arm64.s
src/runtime/sys_linux_arm64.s
src/runtime/sys_netbsd_arm64.s
src/runtime/sys_openbsd_arm64.s

index 29866cb4ca4a7d68e92d92083a1c12a340564355..3b2805311fe6cb3e4307e6513786bdb9123e1b8d 100644 (file)
@@ -295,14 +295,9 @@ TEXT runtime·sigtramp(SB),NOSPLIT|TOPFRAME,$176
        BEQ     2(PC)
        BL      runtime·load_g(SB)
 
-#ifdef GOEXPERIMENT_regabiargs
        // Restore signum to R0.
        MOVW    8(RSP), R0
        // R1 and R2 already contain info and ctx, respectively.
-#else
-       MOVD    R1, 16(RSP)
-       MOVD    R2, 24(RSP)
-#endif
        MOVD    $runtime·sigtrampgo<ABIInternal>(SB), R3
        BL      (R3)
 
index 38ff6ac33017c006e54669f1d080ff026a54ec6a..aa8d6ca619958a217289854ac0540c5e0988ae54 100644 (file)
@@ -455,14 +455,9 @@ TEXT runtime·sigtramp(SB),NOSPLIT|TOPFRAME,$176
        CBZ     R0, 2(PC)
        BL      runtime·load_g(SB)
 
-#ifdef GOEXPERIMENT_regabiargs
        // Restore signum to R0.
        MOVW    8(RSP), R0
        // R1 and R2 already contain info and ctx, respectively.
-#else
-       MOVD    R1, 16(RSP)
-       MOVD    R2, 24(RSP)
-#endif
        MOVD    $runtime·sigtrampgo<ABIInternal>(SB), R3
        BL      (R3)
 
@@ -478,13 +473,7 @@ TEXT runtime·sigprofNonGoWrapper<>(SB),NOSPLIT,$176
        SAVE_R19_TO_R28(8*4)
        SAVE_F8_TO_F15(8*14)
 
-#ifdef GOEXPERIMENT_regabiargs
        // R0, R1 and R2 already contain sig, info and ctx, respectively.
-#else
-       MOVW    R0, 8(RSP)      // sig
-       MOVD    R1, 16(RSP)     // info
-       MOVD    R2, 24(RSP)     // ctx
-#endif
        CALL    runtime·sigprofNonGo<ABIInternal>(SB)
 
        // Restore callee-save registers.
index d57959f8d76d5559f17b182393eb035db7aca341..fffd18f8b0d43eb6cfa83bc64be2a8f773311253 100644 (file)
@@ -317,14 +317,9 @@ TEXT runtime·sigtramp(SB),NOSPLIT|TOPFRAME,$176
        BEQ     2(PC)
        BL      runtime·load_g(SB)
 
-#ifdef GOEXPERIMENT_regabiargs
        // Restore signum to R0.
        MOVW    8(RSP), R0
        // R1 and R2 already contain info and ctx, respectively.
-#else
-       MOVD    R1, 16(RSP)
-       MOVD    R2, 24(RSP)
-#endif
        BL      runtime·sigtrampgo<ABIInternal>(SB)
 
        // Restore callee-save registers.
index db92326efbaec588359666132b7b60de19a6247a..97005eac1468b882b9ad153d02c6189c1e0b89f1 100644 (file)
@@ -62,14 +62,9 @@ TEXT runtime·sigtramp(SB),NOSPLIT|TOPFRAME,$192
        MOVW    R0, 8(RSP)              // signum
        BL      runtime·load_g(SB)
 
-#ifdef GOEXPERIMENT_regabiargs
        // Restore signum to R0.
        MOVW    8(RSP), R0
        // R1 and R2 already contain info and ctx, respectively.
-#else
-       MOVD    R1, 16(RSP)
-       MOVD    R2, 24(RSP)
-#endif
        BL      runtime·sigtrampgo<ABIInternal>(SB)
 
        // Restore callee-save registers.