arm64: Add a function to check a range of CPU revs
Add a function that can check if a given midr is within a range of
revisions. This will be used to check if a CPU is affected by a known
erratum.
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D52187
(cherry picked from commit c76b0247a95ed090cc0d83b2698228d2937af3e6)