diff mbox

[1/2,ARM] Add support for Cortex-R8

Message ID 56D6DA98.9050609@arm.com
State New
Headers show

Commit Message

Andre Vieira (lists) March 2, 2016, 12:20 p.m. UTC
gcc/ChangeLog:

2016-03-02  Andre Vieira  <andre.simoesdiasvieira@arm.com>

     * config/arm/arm-cores.def (cortex-r8): New.
     * config/arm/arm-tables.opt (cortex-r8): New.
     * config/arm/arm-tune.md: Regenerate.
     * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.

Comments

Kyrill Tkachov March 3, 2016, 11:28 a.m. UTC | #1
Hi Andre,

On 02/03/16 12:20, Andre Vieira (lists) wrote:
> gcc/ChangeLog:
>
> 2016-03-02  Andre Vieira  <andre.simoesdiasvieira@arm.com>
>
>       * config/arm/arm-cores.def (cortex-r8): New.
>       * config/arm/arm-tables.opt (cortex-r8): New.
>       * config/arm/arm-tune.md: Regenerate.
>       * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.

Ok.
Thanks,
Kyrill
Kyrill Tkachov March 3, 2016, 11:31 a.m. UTC | #2
On 03/03/16 11:28, Kyrill Tkachov wrote:
> Hi Andre,
>
> On 02/03/16 12:20, Andre Vieira (lists) wrote:
>> gcc/ChangeLog:
>>
>> 2016-03-02  Andre Vieira  <andre.simoesdiasvieira@arm.com>
>>
>>       * config/arm/arm-cores.def (cortex-r8): New.
>>       * config/arm/arm-tables.opt (cortex-r8): New.
>>       * config/arm/arm-tune.md: Regenerate.
>>       * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
>

One nit I just noticed.
The arm-tables.opt entry should say "Renerate" as it's auto-generated from
arm-cores.def.

Ok with that change to the ChangeLog

Kyrill

> Ok.
> Thanks,
> Kyrill
>
Kyrill Tkachov March 3, 2016, 11:32 a.m. UTC | #3
On 03/03/16 11:31, Kyrill Tkachov wrote:
>
> On 03/03/16 11:28, Kyrill Tkachov wrote:
>> Hi Andre,
>>
>> On 02/03/16 12:20, Andre Vieira (lists) wrote:
>>> gcc/ChangeLog:
>>>
>>> 2016-03-02  Andre Vieira <andre.simoesdiasvieira@arm.com>
>>>
>>>       * config/arm/arm-cores.def (cortex-r8): New.
>>>       * config/arm/arm-tables.opt (cortex-r8): New.
>>>       * config/arm/arm-tune.md: Regenerate.
>>>       * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
>>
>
> One nit I just noticed.
> The arm-tables.opt entry should say "Renerate" as it's auto-generated from
> arm-cores.def.
>

Of course, that should say "Regenerate."
Sorry, fingers slipping :(

> Ok with that change to the ChangeLog
>
> Kyrill
>
>> Ok.
>> Thanks,
>> Kyrill
>>
>
Andre Vieira (lists) March 10, 2016, 1:33 p.m. UTC | #4
On 02/03/16 12:20, Andre Vieira (lists) wrote:
> 
> gcc/ChangeLog:
> 
> 2016-03-02  Andre Vieira  <andre.simoesdiasvieira@arm.com>
> 
>      * config/arm/arm-cores.def (cortex-r8): New.
>      * config/arm/arm-tables.opt (cortex-r8): New.
>      * config/arm/arm-tune.md: Regenerate.
>      * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
> 
Hi,

We decided to apply the following patch to the ARM embedded 5 branch.

Best regards,
Andre
diff mbox

Patch

From 8d10507bd80fd0a1db221669a67785f57ffc304f Mon Sep 17 00:00:00 2001
From: Andre Simoes Dias Vieira <andsim01@arm.com>
Date: Tue, 16 Feb 2016 12:01:28 +0000
Subject: [PATCH 1/5] Add Cortex-R8

---
 gcc/config/arm/arm-cores.def  |  1 +
 gcc/config/arm/arm-tables.opt |  3 +++
 gcc/config/arm/arm-tune.md    | 11 ++++++-----
 gcc/doc/invoke.texi           |  2 +-
 4 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/gcc/config/arm/arm-cores.def b/gcc/config/arm/arm-cores.def
index 6538861898689e64a3554f709c5a3355cffad187..0908c6996ecd799f463b8501d31f0b74bada5828 100644
--- a/gcc/config/arm/arm-cores.def
+++ b/gcc/config/arm/arm-cores.def
@@ -155,6 +155,7 @@  ARM_CORE("cortex-r4",		cortexr4, cortexr4,		7R,	ARM_FSET_MAKE_CPU1 (FL_LDSCHED |
 ARM_CORE("cortex-r4f",		cortexr4f, cortexr4f,		7R,	ARM_FSET_MAKE_CPU1 (FL_LDSCHED | FL_FOR_ARCH7R), cortex)
 ARM_CORE("cortex-r5",		cortexr5, cortexr5,		7R,	ARM_FSET_MAKE_CPU1 (FL_LDSCHED | FL_ARM_DIV | FL_FOR_ARCH7R), cortex)
 ARM_CORE("cortex-r7",		cortexr7, cortexr7,		7R,	ARM_FSET_MAKE_CPU1 (FL_LDSCHED | FL_ARM_DIV | FL_FOR_ARCH7R), cortex)
+ARM_CORE("cortex-r8",		cortexr8, cortexr7,		7R,	ARM_FSET_MAKE_CPU1 (FL_LDSCHED | FL_ARM_DIV | FL_FOR_ARCH7R), cortex)
 ARM_CORE("cortex-m7",		cortexm7, cortexm7,		7EM,	ARM_FSET_MAKE_CPU1 (FL_LDSCHED | FL_NO_VOLATILE_CE | FL_FOR_ARCH7EM), cortex_m7)
 ARM_CORE("cortex-m4",		cortexm4, cortexm4,		7EM,	ARM_FSET_MAKE_CPU1 (FL_LDSCHED | FL_FOR_ARCH7EM), v7m)
 ARM_CORE("cortex-m3",		cortexm3, cortexm3,		7M,	ARM_FSET_MAKE_CPU1 (FL_LDSCHED | FL_FOR_ARCH7M), v7m)
diff --git a/gcc/config/arm/arm-tables.opt b/gcc/config/arm/arm-tables.opt
index 6d6ee96828146fe076a6a1ee285f6a1d578b6c85..8fc6a331241a7928bc274250bcfa7d8438bf41aa 100644
--- a/gcc/config/arm/arm-tables.opt
+++ b/gcc/config/arm/arm-tables.opt
@@ -286,6 +286,9 @@  EnumValue
 Enum(processor_type) String(cortex-r7) Value(cortexr7)
 
 EnumValue
+Enum(processor_type) String(cortex-r8) Value(cortexr8)
+
+EnumValue
 Enum(processor_type) String(cortex-m7) Value(cortexm7)
 
 EnumValue
diff --git a/gcc/config/arm/arm-tune.md b/gcc/config/arm/arm-tune.md
index 1c842180cee6afd7a560ef51b63632bb0f83b932..0a6906563c2f5b4e4f6e6c91e978db4e7bdf907f 100644
--- a/gcc/config/arm/arm-tune.md
+++ b/gcc/config/arm/arm-tune.md
@@ -30,9 +30,10 @@ 
 	cortexa8,cortexa9,cortexa12,
 	cortexa15,cortexa17,cortexr4,
 	cortexr4f,cortexr5,cortexr7,
-	cortexm7,cortexm4,cortexm3,
-	marvell_pj4,cortexa15cortexa7,cortexa17cortexa7,
-	cortexa35,cortexa53,cortexa57,
-	cortexa72,exynosm1,qdf24xx,
-	xgene1,cortexa57cortexa53,cortexa72cortexa53"
+	cortexr8,cortexm7,cortexm4,
+	cortexm3,marvell_pj4,cortexa15cortexa7,
+	cortexa17cortexa7,cortexa35,cortexa53,
+	cortexa57,cortexa72,exynosm1,
+	qdf24xx,xgene1,cortexa57cortexa53,
+	cortexa72cortexa53"
 	(const (symbol_ref "((enum attr_tune) arm_tune)")))
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 0a2a6f45d7cf916a84dc48b6885cf04d43b12d8a..52cbdd26c453fd54562b43c23428a8671e74254d 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -13876,7 +13876,7 @@  Permissible names are: @samp{arm2}, @samp{arm250},
 @samp{cortex-a9}, @samp{cortex-a12}, @samp{cortex-a15}, @samp{cortex-a17},
 @samp{cortex-a35}, @samp{cortex-a53}, @samp{cortex-a57}, @samp{cortex-a72},
 @samp{cortex-r4},
-@samp{cortex-r4f}, @samp{cortex-r5}, @samp{cortex-r7}, @samp{cortex-m7},
+@samp{cortex-r4f}, @samp{cortex-r5}, @samp{cortex-r7}, @samp{cortex-r8}, @samp{cortex-m7},
 @samp{cortex-m4},
 @samp{cortex-m3},
 @samp{cortex-m1},
-- 
1.9.1