]> Cypherpunks repositories - gostls13.git/commit
internal/cpu: fix and cleanup ARM64 cpu feature fields and options
authorMartin Möhrmann <moehrmann@google.com>
Thu, 5 Nov 2020 04:59:34 +0000 (05:59 +0100)
committerMartin Möhrmann <moehrmann@google.com>
Thu, 5 Nov 2020 10:46:08 +0000 (10:46 +0000)
commit3510a1e32cbc86b73db143aefcc00aadc44c27bd
treed2f7d74eb7d903b8c2a494e1ea3ca4f406a90582
parent3ef8562c9c2c7f6897572b05b70ac936a99fd043
internal/cpu: fix and cleanup ARM64 cpu feature fields and options

Remove all cpu features from the ARM64 struct that are not initialized
to reduce cache lines used and to avoid those features being
accidentially used without actual detection if they are present.

Add missing option to mask the CPUID feature.

Change-Id: I94bf90c0655de1af2218ac72117ac6c52adfc289
Reviewed-on: https://go-review.googlesource.com/c/go/+/267658
Run-TryBot: Martin Möhrmann <moehrmann@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
Trust: Martin Möhrmann <moehrmann@google.com>
src/internal/cpu/cpu.go
src/internal/cpu/cpu_arm64.go