Skip to content

x/sys/cpu: add support for darwin/arm64 #43046

Open
golang/sys
#202
@martisch

Description

@martisch

darwin/arm64 support for internal/cpu was implemented in c155931 using a mix of dynamic detection with sysctlbyname and hardcoded minimal feature support assumed on darwin/arm64.

For x/sys/cpu it can be assumed it only needs to work with Go 1.16 and newer. Interestingly darwing/arm64 was previosly used for the now ios/arm64 port. We should keep compatibility such that old code still compiles pre Go 1.16 even if there may be no runtime detection supported.

Implementing support for x/sys/cpu will be a bit more complex. While x/sys/cpu does not need to be as low dependency as internal/cpu it should still avoid uncommon or large dependencies. Note that x/sys/cpu is vendored into the standard library for some crypto support that is also vendored in.

x/sys/cpu should avoid a dependency on x/sys/unix: #32102

Activity

added this to the Unreleased milestone on Dec 7, 2020
added
NeedsFixThe path to resolution is known, but the work has not been done.
on Dec 7, 2020
gopherbot

gopherbot commented on Jun 13, 2022

@gopherbot
Contributor

Change https://go.dev/cl/397754 mentions this issue: cpu: support darwin/arm64 feature detection

added a commit that references this issue on Jul 8, 2024
e13bdde
gopherbot

gopherbot commented on Sep 29, 2024

@gopherbot
Contributor

Change https://go.dev/cl/616555 mentions this issue: sha3: add SIMD implementation with ARMv8.2 features

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsFixThe path to resolution is known, but the work has not been done.OS-Darwin

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      Participants

      @martisch@gopherbot@seankhliao

      Issue actions

        x/sys/cpu: add support for darwin/arm64 · Issue #43046 · golang/go