diff mbox

Use leon3 target for native LEON on Linux

Message ID 1435062156-28097-3-git-send-email-cederman@gaisler.com
State New
Headers show

Commit Message

Daniel Cederman June 23, 2015, 12:22 p.m. UTC
Linux requires LEON version 3 or above with CASA support.

gcc/ChangeLog:

2015-06-23  Daniel Cederman  <cederman@gaisler.com>

	* config/sparc/driver-sparc.c: map /proc/cpuinfo with CPU LEON
	  to leon3
---
 gcc/config/sparc/driver-sparc.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Eric Botcazou June 26, 2015, 7:44 a.m. UTC | #1
> 2015-06-23  Daniel Cederman  <cederman@gaisler.com>
> 
> 	* config/sparc/driver-sparc.c: map /proc/cpuinfo with CPU LEON
> 	  to leon3

OK for mainline and 5 branch (and 4.9 branch once it reopens), but the 
ChangeLog entry should be:

	* config/sparc/driver-sparc.c (cpu_names): Map LEON to leon3.
diff mbox

Patch

diff --git a/gcc/config/sparc/driver-sparc.c b/gcc/config/sparc/driver-sparc.c
index 778de2c..5969735 100644
--- a/gcc/config/sparc/driver-sparc.c
+++ b/gcc/config/sparc/driver-sparc.c
@@ -73,6 +73,7 @@  static const struct cpu_names {
   { "UltraSparc T2",	"niagara2" },
   { "UltraSparc T3",	"niagara3" },
   { "UltraSparc T4",	"niagara4" },
+  { "LEON",		"leon3" },
 #endif
   { NULL,	NULL }
   };