This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH][ARM] Add -mcpu=native detection for Cortex-A53, A57
- From: Kyrill Tkachov <kyrylo dot tkachov at arm dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Richard Earnshaw <Richard dot Earnshaw at arm dot com>, Ramana Radhakrishnan <ramana dot radhakrishnan at arm dot com>
- Date: Mon, 10 Feb 2014 11:01:10 +0000
- Subject: [PATCH][ARM] Add -mcpu=native detection for Cortex-A53, A57
- Authentication-results: sourceware.org; auth=none
Hi all,
This patchlet adds the part numbers for the Cortex-A53 and A57 cores so that
they can be detected when parsing /proc/cpuinfo on AArch32 Linux systems. This
will allow the -mcpu=native machinery to detect those cores.
Tested arm-none-eabi on a model.
This is a fairly innocuous change, is it ok at this stage or for next stage 1?
Thanks,
Kyrill
2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/arm/driver-arm.c (arm_cpu_table): Add entries for Cortex-A53,
Cortex-A57.
diff --git a/gcc/config/arm/driver-arm.c b/gcc/config/arm/driver-arm.c
index 6d9c417..a4a62cc 100644
--- a/gcc/config/arm/driver-arm.c
+++ b/gcc/config/arm/driver-arm.c
@@ -42,6 +42,8 @@ static struct vendor_cpu arm_cpu_table[] = {
{"0xc09", "armv7-a", "cortex-a9"},
{"0xc0d", "armv7ve", "cortex-a12"},
{"0xc0f", "armv7ve", "cortex-a15"},
+ {"0xd03", "armv8-a+crc", "cortex-a53"},
+ {"0xd07", "armv8-a+crc", "cortex-a57"},
{"0xc14", "armv7-r", "cortex-r4"},
{"0xc15", "armv7-r", "cortex-r5"},
{"0xc20", "armv6-m", "cortex-m0"},