]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Move setting arm64 HWCAP values to the ID tables
authorAndrew Turner <andrew@FreeBSD.org>
Fri, 16 Jul 2021 13:49:33 +0000 (13:49 +0000)
committerAndrew Turner <andrew@FreeBSD.org>
Mon, 30 Aug 2021 11:22:22 +0000 (12:22 +0100)
commita9f6cb43abc4da25ee154a77fe25838a4841cbc3
tree07865687a443a0d26fe79d0da3b1a3643821d7b3
parentb49a75c3932a8f6d5b77ae8619d4587a82541623
Move setting arm64 HWCAP values to the ID tables

The HWCAPS values are based on the ID registers. Move setting these
to the existing ID register parsing code.

Previously we would need to handle all possible ID field values where
a HWCAP is set, however as most ID fields follow a scheme where when
the field increments it will only add new features meaning we only
need to check if the field is greater than when the HWCAP feature
was added.

While here stop setting HWCAP value that need kernel support, but this
support is missing.

Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D31201

(cherry picked from commit 1a78f44cd205b6f9ca11ef5cdb6e1f32c0134193)
sys/arm64/arm64/identcpu.c