arm - Add vendor and CPU id information to arm-cpus.in
authorRichard Earnshaw <rearnsha@arm.com>
Fri, 13 Jul 2018 11:48:43 +0000 (11:48 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Fri, 13 Jul 2018 11:48:43 +0000 (11:48 +0000)
commitb02160e5ac1dc57bbecd3387b61fcad8c7a57672
tree610bcc7889021874b00c1f0cb47b81c10c28e146
parent67fccea48da5b2a7a62f9b08acc01b254ab4c1a5
arm - Add vendor and CPU id information to arm-cpus.in

This patch moves the vendor and CPU id data from driver-arm.c to the
main table of CPU data in arm-cpus.in.  It then adds rules to
parsecpu.awk to build data tables that can be used by the driver for
automatic CPU detection when running natively.  This is the last major
bit of CPU-specific data that can be usefully moved to the CPU data
tables (I don't think it is sensible to move the per-cpu tuning data
from its current location).

The syntax and parser can support revision ranges, but at present
nothing is done with that data: no supported cpu currently needs that
capability.

* config/arm/driver-arm.c: Include arm-native.h.
(host_detect_local_cpu): Use auto-generated data tables.
(vendors, arm_cpu_table): Delete.  Move part information to ...
* config/arm/arm-cpus.in: ... here.
* config/arm/parsecpu.awk (gen_native): New function.
(vendor, part): New CPU fields.
(END): Add support for building the native CPU detection tables.
* config/arm/t-arm (arm-native.h): Add build rule.
(driver-arm.o): Add dependency on arm-native.h.

From-SVN: r262633
gcc/ChangeLog
gcc/config/arm/arm-cpus.in
gcc/config/arm/driver-arm.c
gcc/config/arm/parsecpu.awk
gcc/config/arm/t-arm