Patchwork bf54x support

login
register
mail settings
Submitter Henderson, Stuart
Date May 3, 2011, 9:23 a.m.
Message ID <05E9E85E39C35B4D96ED3A3190E35A10A49CB85E85@LIMKCMBX1.ad.analog.com>
Download mbox | patch
Permalink /patch/93759/
State New
Headers show

Comments

Henderson, Stuart - May 3, 2011, 9:23 a.m.
ping


The attached patch adds support for silicon revision 0.4 of the bf54x family.


2011-02-17  Mike Frysinger  <michael.frysinger@analog.com>

   * gcc.target/bfin/mcpu-bf542.c: Check SILICON_REVISION is 0x0004.
   * gcc.target/bfin/mcpu-bf544.c, gcc.target/bfin/mcpu-bf547.c,
   gcc.target/bfin/mcpu-bf548.c, gcc.target/bfin/mcpu-bf549.c: Likewise.


2011-02-17  Mike Frysinger  <michael.frysinger@analog.com>

   * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
   bf542/bf544/bf547/bf548/bf549.


Thanks,
Stu
Bernd Schmidt - May 3, 2011, 9:40 a.m.
On 05/03/2011 11:23 AM, Henderson, Stuart wrote:
> ping
> 
> 
> The attached patch adds support for silicon revision 0.4 of the bf54x family.

This is OK.

I'll also approve all the patches you posted that were originally from
either me or Jie and confined to config/bfin. Could you ping the ones
that remain after that?


Bernd
Henderson, Stuart - May 3, 2011, 9:41 a.m.
sounds good to me.

Thanks.

Stu

-----Original Message-----
From: Bernd Schmidt [mailto:bernds@codesourcery.com]
Sent: 03 May 2011 10:40
To: Henderson, Stuart
Cc: gcc-patches@gcc.gnu.org
Subject: Re: bf54x support

On 05/03/2011 11:23 AM, Henderson, Stuart wrote:
> ping
>
>
> The attached patch adds support for silicon revision 0.4 of the bf54x family.

This is OK.

I'll also approve all the patches you posted that were originally from
either me or Jie and confined to config/bfin. Could you ping the ones
that remain after that?


Bernd

Patch

Index: gcc/testsuite/gcc.target/bfin/mcpu-bf542.c
===================================================================
--- gcc/testsuite/gcc.target/bfin/mcpu-bf542.c  (revision 5257)
+++ gcc/testsuite/gcc.target/bfin/mcpu-bf542.c  (revision 5258)
@@ -10,8 +10,8 @@ 
 #error "__ADSPBF54x__ is not defined"
 #endif

-#if __SILICON_REVISION__ != 0x0002
-#error "__SILICON_REVISION__ is not 0x0002"
+#if __SILICON_REVISION__ != 0x0004
+#error "__SILICON_REVISION__ is not 0x0004"
 #endif

 #ifndef __WORKAROUNDS_ENABLED
Index: gcc/testsuite/gcc.target/bfin/mcpu-bf544.c
===================================================================
--- gcc/testsuite/gcc.target/bfin/mcpu-bf544.c  (revision 5257)
+++ gcc/testsuite/gcc.target/bfin/mcpu-bf544.c  (revision 5258)
@@ -10,8 +10,8 @@ 
 #error "__ADSPBF54x__ is not defined"
 #endif

-#if __SILICON_REVISION__ != 0x0002
-#error "__SILICON_REVISION__ is not 0x0002"
+#if __SILICON_REVISION__ != 0x0004
+#error "__SILICON_REVISION__ is not 0x0004"
 #endif

 #ifndef __WORKAROUNDS_ENABLED
Index: gcc/testsuite/gcc.target/bfin/mcpu-bf547.c
===================================================================
--- gcc/testsuite/gcc.target/bfin/mcpu-bf547.c  (revision 5257)
+++ gcc/testsuite/gcc.target/bfin/mcpu-bf547.c  (revision 5258)
@@ -10,8 +10,8 @@ 
 #error "__ADSPBF54x__ is not defined"
 #endif

-#if __SILICON_REVISION__ != 0x0002
-#error "__SILICON_REVISION__ is not 0x0002"
+#if __SILICON_REVISION__ != 0x0004
+#error "__SILICON_REVISION__ is not 0x0004"
 #endif

 #ifndef __WORKAROUNDS_ENABLED
Index: gcc/testsuite/gcc.target/bfin/mcpu-bf548.c
===================================================================
--- gcc/testsuite/gcc.target/bfin/mcpu-bf548.c  (revision 5257)
+++ gcc/testsuite/gcc.target/bfin/mcpu-bf548.c  (revision 5258)
@@ -10,8 +10,8 @@ 
 #error "__ADSPBF54x__ is not defined"
 #endif

-#if __SILICON_REVISION__ != 0x0002
-#error "__SILICON_REVISION__ is not 0x0002"
+#if __SILICON_REVISION__ != 0x0004
+#error "__SILICON_REVISION__ is not 0x0004"
 #endif

 #ifndef __WORKAROUNDS_ENABLED
Index: gcc/testsuite/gcc.target/bfin/mcpu-bf549.c
===================================================================
--- gcc/testsuite/gcc.target/bfin/mcpu-bf549.c  (revision 5257)
+++ gcc/testsuite/gcc.target/bfin/mcpu-bf549.c  (revision 5258)
@@ -10,8 +10,8 @@ 
 #error "__ADSPBF54x__ is not defined"
 #endif

-#if __SILICON_REVISION__ != 0x0002
-#error "__SILICON_REVISION__ is not 0x0002"
+#if __SILICON_REVISION__ != 0x0004
+#error "__SILICON_REVISION__ is not 0x0004"
 #endif

 #ifndef __WORKAROUNDS_ENABLED
Index: gcc/config/bfin/bfin.c
===================================================================
--- gcc/config/bfin/bfin.c      (revision 5257)
+++ gcc/config/bfin/bfin.c      (revision 5258)
@@ -300,6 +300,8 @@ 
   {"bf542m", BFIN_CPU_BF542M, 0x0003,
    WA_SPECULATIVE_LOADS | WA_INDIRECT_CALLS | WA_05000074},

+  {"bf542", BFIN_CPU_BF542, 0x0004,
+   WA_SPECULATIVE_LOADS | WA_INDIRECT_CALLS | WA_05000074},
   {"bf542", BFIN_CPU_BF542, 0x0002,
    WA_SPECULATIVE_LOADS | WA_INDIRECT_CALLS | WA_05000074},
   {"bf542", BFIN_CPU_BF542, 0x0001,
@@ -311,6 +313,8 @@ 
   {"bf544m", BFIN_CPU_BF544M, 0x0003,
    WA_SPECULATIVE_LOADS | WA_INDIRECT_CALLS | WA_05000074},

+  {"bf544", BFIN_CPU_BF544, 0x0004,
+   WA_SPECULATIVE_LOADS | WA_INDIRECT_CALLS | WA_05000074},
   {"bf544", BFIN_CPU_BF544, 0x0002,
    WA_SPECULATIVE_LOADS | WA_INDIRECT_CALLS | WA_05000074},
   {"bf544", BFIN_CPU_BF544, 0x0001,
@@ -322,6 +326,8 @@ 
   {"bf547m", BFIN_CPU_BF547M, 0x0003,
    WA_SPECULATIVE_LOADS | WA_INDIRECT_CALLS | WA_05000074},

+  {"bf547", BFIN_CPU_BF547, 0x0004,
+   WA_SPECULATIVE_LOADS | WA_INDIRECT_CALLS | WA_05000074},
   {"bf547", BFIN_CPU_BF547, 0x0002,
    WA_SPECULATIVE_LOADS | WA_INDIRECT_CALLS | WA_05000074},
   {"bf547", BFIN_CPU_BF547, 0x0001,
@@ -333,6 +339,8 @@ 
   {"bf548m", BFIN_CPU_BF548M, 0x0003,
    WA_SPECULATIVE_LOADS | WA_INDIRECT_CALLS | WA_05000074},

+  {"bf548", BFIN_CPU_BF548, 0x0004,
+   WA_SPECULATIVE_LOADS | WA_INDIRECT_CALLS | WA_05000074},
   {"bf548", BFIN_CPU_BF548, 0x0002,
    WA_SPECULATIVE_LOADS | WA_INDIRECT_CALLS | WA_05000074},
   {"bf548", BFIN_CPU_BF548, 0x0001,
@@ -344,6 +352,8 @@ 
   {"bf549m", BFIN_CPU_BF549M, 0x0003,
    WA_SPECULATIVE_LOADS | WA_INDIRECT_CALLS | WA_05000074},

+  {"bf549", BFIN_CPU_BF549, 0x0004,
+   WA_SPECULATIVE_LOADS | WA_INDIRECT_CALLS | WA_05000074},
   {"bf549", BFIN_CPU_BF549, 0x0002,
    WA_SPECULATIVE_LOADS | WA_INDIRECT_CALLS | WA_05000074},
   {"bf549", BFIN_CPU_BF549, 0x0001,