diff mbox

[ARM] Add -mcpu=native detection for Cortex-A53, A57

Message ID 52F8B176.40308@arm.com
State New
Headers show

Commit Message

Kyrylo Tkachov Feb. 10, 2014, 11:01 a.m. UTC
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.

Comments

Ramana Radhakrishnan Feb. 11, 2014, 3:10 p.m. UTC | #1
On Mon, Feb 10, 2014 at 11:01 AM, Kyrill Tkachov <kyrylo.tkachov@arm.com> wrote:
> 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?

I'm happy for this to go in provided an RM doesn't object in 24 hours.

regards
Ramana


>
> 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 mbox

Patch

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"},