public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] [ARM] Add support for the Samsung Exynos M1 processor
@ 2015-03-30 21:52 Evandro Menezes
  2015-03-31  8:33 ` Kyrill Tkachov
  0 siblings, 1 reply; 11+ messages in thread
From: Evandro Menezes @ 2015-03-30 21:52 UTC (permalink / raw)
  To: 'GCC Patches'

[-- Attachment #1: Type: text/plain, Size: 275 bytes --]

The Samsung Exynos M1 implements the ARMv8 ISA and this patch adds support
for it through the -mcpu command-line option.

The patch was checked on arm-unknown-linux-gnueabihf without new failures.

OK for trunk?

-- 
Evandro Menezes                              Austin, TX



[-- Attachment #2: 0001-ARM-Add-option-for-the-Samsung-Exynos-M1-core-for-AR.patch --]
[-- Type: application/octet-stream, Size: 3756 bytes --]

From 5951140f9c1ba428533b9b4e2d98a8c2bd3517c1 Mon Sep 17 00:00:00 2001
From: Evandro Menezes <e.menezes@samsung.com>
Date: Fri, 20 Mar 2015 15:43:07 -0500
Subject: [PATCH] [ARM] Add option for the Samsung Exynos M1 core for ARM

gcc/
	* doc/invoke.texi (ARM/mtune): Add exynos-m1 as an option.
	* config/arm/arm-cores.def (exynos-m1): New core.
	* config/arm/arm-tune.md: Regenerate.
	* config/arm/arm-tables.opt: Add entry for "exynos-m1".
	* config/arm/bpabi.h: Likewise.
---
 gcc/config/arm/arm-cores.def  | 1 +
 gcc/config/arm/arm-tables.opt | 3 +++
 gcc/config/arm/arm-tune.md    | 2 +-
 gcc/config/arm/bpabi.h        | 2 ++
 gcc/doc/invoke.texi           | 1 +
 5 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/gcc/config/arm/arm-cores.def b/gcc/config/arm/arm-cores.def
index b22ea7f..0710a38 100644
--- a/gcc/config/arm/arm-cores.def
+++ b/gcc/config/arm/arm-cores.def
@@ -168,6 +168,7 @@ ARM_CORE("cortex-a17.cortex-a7", cortexa17cortexa7, cortexa7,	7A,  FL_LDSCHED |
 ARM_CORE("cortex-a53",	cortexa53, cortexa53,	8A, FL_LDSCHED | FL_CRC32, cortex_a53)
 ARM_CORE("cortex-a57",	cortexa57, cortexa57,	8A, FL_LDSCHED | FL_CRC32, cortex_a57)
 ARM_CORE("cortex-a72",	cortexa72, cortexa57,	8A, FL_LDSCHED | FL_CRC32, cortex_a57)
+ARM_CORE("exynos-m1",	exynosm1,  exynosm1,	8A, FL_LDSCHED | FL_CRC32, exynosm1)
 ARM_CORE("xgene1",      xgene1,    xgene1,      8A, FL_LDSCHED,            xgene1)
 
 /* V8 big.LITTLE implementations */
diff --git a/gcc/config/arm/arm-tables.opt b/gcc/config/arm/arm-tables.opt
index 3450e5b..510e745 100644
--- a/gcc/config/arm/arm-tables.opt
+++ b/gcc/config/arm/arm-tables.opt
@@ -313,6 +313,9 @@ EnumValue
 Enum(processor_type) String(cortex-a72) Value(cortexa72)
 
 EnumValue
+Enum(processor_type) String(exynos-m1) Value(exynosm1)
+
+EnumValue
 Enum(processor_type) String(xgene1) Value(xgene1)
 
 EnumValue
diff --git a/gcc/config/arm/arm-tune.md b/gcc/config/arm/arm-tune.md
index d459f27..f054617 100644
--- a/gcc/config/arm/arm-tune.md
+++ b/gcc/config/arm/arm-tune.md
@@ -32,6 +32,6 @@
 	cortexr4f,cortexr5,cortexr7,
 	cortexm7,cortexm4,cortexm3,
 	marvell_pj4,cortexa15cortexa7,cortexa17cortexa7,
-	cortexa53,cortexa57,cortexa72,
+	cortexa53,cortexa57,cortexa72,exynosm1,
 	xgene1,cortexa57cortexa53,cortexa72cortexa53"
 	(const (symbol_ref "((enum attr_tune) arm_tune)")))
diff --git a/gcc/config/arm/bpabi.h b/gcc/config/arm/bpabi.h
index c62130d..ceaf2cc 100644
--- a/gcc/config/arm/bpabi.h
+++ b/gcc/config/arm/bpabi.h
@@ -73,6 +73,7 @@
    |mcpu=cortex-a57.cortex-a53				\
    |mcpu=cortex-a72					\
    |mcpu=cortex-a72.cortex-a53				\
+   |mcpu=exynos-m1                                      \
    |mcpu=xgene1                                         \
    |mcpu=cortex-m1.small-multiply                       \
    |mcpu=cortex-m0.small-multiply                       \
@@ -97,6 +98,7 @@
    |mcpu=cortex-a57.cortex-a53				\
    |mcpu=cortex-a72					\
    |mcpu=cortex-a72.cortex-a53				\
+   |mcpu=exynos-m1                                      \
    |mcpu=xgene1                                         \
    |mcpu=cortex-m1.small-multiply                       \
    |mcpu=cortex-m0.small-multiply                       \
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 19606e3..9eec108 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -13192,6 +13192,7 @@ Permissible names are: @samp{arm2}, @samp{arm250},
 @samp{cortex-m1.small-multiply},
 @samp{cortex-m0.small-multiply},
 @samp{cortex-m0plus.small-multiply},
+@samp{exynos-m1},
 @samp{marvell-pj4},
 @samp{xscale}, @samp{iwmmxt}, @samp{iwmmxt2}, @samp{ep9312},
 @samp{fa526}, @samp{fa626},
-- 
2.1.0.243.g30d45f7


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

end of thread, other threads:[~2015-04-06 19:29 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-30 21:52 [PATCH] [ARM] Add support for the Samsung Exynos M1 processor Evandro Menezes
2015-03-31  8:33 ` Kyrill Tkachov
2015-04-01  0:31   ` Evandro Menezes
2015-04-02 22:19     ` Sebastian Pop
2015-04-02 22:51       ` James Greenhalgh
2015-04-03 16:18         ` Sebastian Pop
2015-04-03 18:53           ` Ramana Radhakrishnan
2015-04-03 21:10             ` James Greenhalgh
2015-04-04  3:03               ` Sebastian Pop
2015-04-04  6:26                 ` Richard Biener
2015-04-06 19:29                   ` Sebastian Pop

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).