-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/sys/cpu: ARM64.HasAES = false on Apple Silicon (M1 Max) #68150
Comments
Similar Issues
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.) |
It looks like x/sys/cpu parses registers https://go.googlesource.com/sys/+/76700875dfcc135287c18189252576117307b695/cpu/cpu_arm64.go#73 |
Thanks for pointing this out. |
I need to make the fixes requested by the reviewers, then it needs to be reviewed again. |
This is mostly a dupe of #43046 |
Your responses to the remaining two issues make sense to me, and it seems that it could be merged as it is. Any idea of why the reviewer did not provide feedback? |
Note that hardware AES is selected based on the |
Change https://go.dev/cl/616555 mentions this issue: |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Run a simple test to check whether hardware AES is used on my machine.
The following is simply run with
go test -tags ""
What did you expect to see?
I would have expected
Hardware AES is used: true
since AES instructions are supported.In
go/src/internal/cpu/cpu_arm64_darwin.go
, the variablecpu.ARM64.HasAES
should be set totrue
, and I cannot understand why that is not the case since the build conditions//go:build arm64 && darwin && !ios
should be satisfied?What did you see instead?
I get
Hardware AES is used: false
instead.The text was updated successfully, but these errors were encountered: