public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH][SPARC] Fix cpu auto-detection in M7 and S7 (Sonoma)
@ 2016-06-08 13:34 Jose E. Marchesi
  2016-06-08 14:02 ` Eric Botcazou
  0 siblings, 1 reply; 6+ messages in thread
From: Jose E. Marchesi @ 2016-06-08 13:34 UTC (permalink / raw)
  To: gcc-patches


Starting with the M7 we will be using the same identifiers to identify
the cpu in both Solaris (via kstat) and GNU/Linux (via /proc/cpuinfo).
This little patch fixes the SPARC M7 entry in cpu_names, and also adds
an entry for the Sonoma SoC.

Tested in sparc64-*-linux-gnu, sparcv9-*-linux-gnu and
sparc-sun-solaris2.11 targets.

2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>

	* config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
	SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).


diff --git a/gcc/config/sparc/driver-sparc.c b/gcc/config/sparc/driver-sparc.c
index b81763e..ea174bf 100644
--- a/gcc/config/sparc/driver-sparc.c
+++ b/gcc/config/sparc/driver-sparc.c
@@ -57,7 +57,6 @@ static const struct cpu_names {
   { "UltraSPARC-T2+",	"niagara2" },
   { "SPARC-T3",		"niagara3" },
   { "SPARC-T4",		"niagara4" },
-  { "SPARC-M7",		"niagara7" },
 #else
   { "SuperSparc",	"supersparc" },
   { "HyperSparc",	"hypersparc" },
@@ -74,9 +73,10 @@ static const struct cpu_names {
   { "UltraSparc T2",	"niagara2" },
   { "UltraSparc T3",	"niagara3" },
   { "UltraSparc T4",	"niagara4" },
-  { "UltraSparc M7",	"niagara7" },
   { "LEON",		"leon3" },
 #endif
+  { "SPARC-M7",		"niagara7" },
+  { "SPARC-S7",		"niagara7" },
   { NULL,	NULL }
   };
 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH][SPARC] Fix cpu auto-detection in M7 and S7 (Sonoma)
  2016-06-08 13:34 [PATCH][SPARC] Fix cpu auto-detection in M7 and S7 (Sonoma) Jose E. Marchesi
@ 2016-06-08 14:02 ` Eric Botcazou
  2016-06-08 16:05   ` Jose E. Marchesi
  2016-06-08 19:15   ` Jose E. Marchesi
  0 siblings, 2 replies; 6+ messages in thread
From: Eric Botcazou @ 2016-06-08 14:02 UTC (permalink / raw)
  To: Jose E. Marchesi; +Cc: gcc-patches

> Starting with the M7 we will be using the same identifiers to identify
> the cpu in both Solaris (via kstat) and GNU/Linux (via /proc/cpuinfo).
> This little patch fixes the SPARC M7 entry in cpu_names, and also adds
> an entry for the Sonoma SoC.
> 
> Tested in sparc64-*-linux-gnu, sparcv9-*-linux-gnu and
> sparc-sun-solaris2.11 targets.
> 
> 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
> 
> 	* config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
> 	SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).

OK, but it needs to be applied both on mainline and 6 branch.

-- 
Eric Botcazou

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH][SPARC] Fix cpu auto-detection in M7 and S7 (Sonoma)
  2016-06-08 14:02 ` Eric Botcazou
@ 2016-06-08 16:05   ` Jose E. Marchesi
  2016-06-08 18:30     ` Jose E. Marchesi
  2016-06-08 21:15     ` Eric Botcazou
  2016-06-08 19:15   ` Jose E. Marchesi
  1 sibling, 2 replies; 6+ messages in thread
From: Jose E. Marchesi @ 2016-06-08 16:05 UTC (permalink / raw)
  To: Eric Botcazou; +Cc: gcc-patches


    > Starting with the M7 we will be using the same identifiers to identify
    > the cpu in both Solaris (via kstat) and GNU/Linux (via /proc/cpuinfo).
    > This little patch fixes the SPARC M7 entry in cpu_names, and also adds
    > an entry for the Sonoma SoC.
    > 
    > Tested in sparc64-*-linux-gnu, sparcv9-*-linux-gnu and
    > sparc-sun-solaris2.11 targets.
    > 
    > 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
    > 
    > 	* config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
    > 	SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
    
    OK, but it needs to be applied both on mainline and 6 branch.

No problem.  Do I need the approval of a maintainer in particular for
commits in the 6 branch?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH][SPARC] Fix cpu auto-detection in M7 and S7 (Sonoma)
  2016-06-08 16:05   ` Jose E. Marchesi
@ 2016-06-08 18:30     ` Jose E. Marchesi
  2016-06-08 21:15     ` Eric Botcazou
  1 sibling, 0 replies; 6+ messages in thread
From: Jose E. Marchesi @ 2016-06-08 18:30 UTC (permalink / raw)
  To: Eric Botcazou; +Cc: gcc-patches


        > Starting with the M7 we will be using the same identifiers to identify
        > the cpu in both Solaris (via kstat) and GNU/Linux (via /proc/cpuinfo).
        > This little patch fixes the SPARC M7 entry in cpu_names, and also adds
        > an entry for the Sonoma SoC.
        > 
        > Tested in sparc64-*-linux-gnu, sparcv9-*-linux-gnu and
        > sparc-sun-solaris2.11 targets.
        > 
        > 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
        > 
        > 	* config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
        > 	SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
        
        OK, but it needs to be applied both on mainline and 6 branch.
    
    No problem.  Do I need the approval of a maintainer in particular for
    commits in the 6 branch?

Oh, never mind.  Now I read your email properly :)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH][SPARC] Fix cpu auto-detection in M7 and S7 (Sonoma)
  2016-06-08 14:02 ` Eric Botcazou
  2016-06-08 16:05   ` Jose E. Marchesi
@ 2016-06-08 19:15   ` Jose E. Marchesi
  1 sibling, 0 replies; 6+ messages in thread
From: Jose E. Marchesi @ 2016-06-08 19:15 UTC (permalink / raw)
  To: Eric Botcazou; +Cc: gcc-patches


    > Starting with the M7 we will be using the same identifiers to identify
    > the cpu in both Solaris (via kstat) and GNU/Linux (via /proc/cpuinfo).
    > This little patch fixes the SPARC M7 entry in cpu_names, and also adds
    > an entry for the Sonoma SoC.
    > 
    > Tested in sparc64-*-linux-gnu, sparcv9-*-linux-gnu and
    > sparc-sun-solaris2.11 targets.
    > 
    > 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
    > 
    > 	* config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
    > 	SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
    
    OK, but it needs to be applied both on mainline and 6 branch.

Applied to both trunk and branches/gcc-6-branch.
Thanks.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH][SPARC] Fix cpu auto-detection in M7 and S7 (Sonoma)
  2016-06-08 16:05   ` Jose E. Marchesi
  2016-06-08 18:30     ` Jose E. Marchesi
@ 2016-06-08 21:15     ` Eric Botcazou
  1 sibling, 0 replies; 6+ messages in thread
From: Eric Botcazou @ 2016-06-08 21:15 UTC (permalink / raw)
  To: Jose E. Marchesi; +Cc: gcc-patches

> No problem.  Do I need the approval of a maintainer in particular for
> commits in the 6 branch?

No, maintainers can approve patches for branches outside of release periods.

-- 
Eric Botcazou

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-06-08 21:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-08 13:34 [PATCH][SPARC] Fix cpu auto-detection in M7 and S7 (Sonoma) Jose E. Marchesi
2016-06-08 14:02 ` Eric Botcazou
2016-06-08 16:05   ` Jose E. Marchesi
2016-06-08 18:30     ` Jose E. Marchesi
2016-06-08 21:15     ` Eric Botcazou
2016-06-08 19:15   ` Jose E. Marchesi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).