]> Cypherpunks repositories - gostls13.git/commit
runtime: provide and use a GO_PPC64X_HAS_FUNCDESC define
authorJoel Sing <joel@sing.id.au>
Tue, 14 Mar 2023 09:50:38 +0000 (20:50 +1100)
committerJoel Sing <joel@sing.id.au>
Sat, 18 Mar 2023 06:28:23 +0000 (06:28 +0000)
commit6827f0d7722ae08cf25cf2212f78bfc6ab8bfd0d
treef53e2c6c72a84ab0eaf4ab5aaee07bd2a17a86fd
parentada6ffca8399af9ad24e82502db1429b85b7405f
runtime: provide and use a GO_PPC64X_HAS_FUNCDESC define

Rather than implying that all ppc64 GOARCHs use function descriptors,
provide a define for platforms that make use of function descriptors.
Condition on GO_PPC64X_HAS_FUNCDESC when choosing whether or not
to load the entry address from the first slot of the function
descriptor.

Updates #56001.

Change-Id: I9cdc788f2de70a1262c17d8485b555383d1374b5
Reviewed-on: https://go-review.googlesource.com/c/go/+/476117
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Run-TryBot: Joel Sing <joel@sing.id.au>
Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/runtime/asm_ppc64x.h
src/runtime/asm_ppc64x.s
src/runtime/cgo/asm_ppc64x.s