This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH, gas/ARM] Add support for Cortex-M23
- From: Thomas Preudhomme <thomas dot preudhomme at foss dot arm dot com>
- To: Richard Earnshaw <richard dot earnshaw at arm dot com>, Nick Clifton <nickc at redhat dot com>, Alan Modra <amodra at gmail dot com>, binutils at sourceware dot org
- Date: Wed, 26 Oct 2016 15:58:54 +0100
- Subject: [PATCH, gas/ARM] Add support for Cortex-M23
- Authentication-results: sourceware.org; auth=none
[resending with mailing list also as recipient this time]
Hi,
This patch adds support for the Cortex-M23 processors launched by ARM [1]. The
patch adds support for the name and wires it up to the ARMv8-M Baseline
architecture. It also updates documentation to mention this new processor.
[1] http://www.arm.com/products/processors/cortex-m/cortex-m23-processor.php
ChangeLog entry is as follows:
*** gas/Changelog ***
2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
* config/tc-arm.c (cortex-m23): Declare new processor.
* doc/c-arm.texi (cortex-m23): Document new processor.
Tested by building libgcc and libstdc++ for Cortex-M23 and running a hello world
compiled for it.
Is this ok for master?
Best regards,
Thomas
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index 73f8396396ff85276dc5bc92f79764d6d194b3d3..69dfe989133cbdc12f2da9d2864e6788eace3353 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -25406,6 +25406,8 @@ static const struct arm_cpu_option_table arm_cpus[] =
ARM_CPU_OPT ("cortex-r8", ARM_ARCH_V7R_IDIV,
FPU_ARCH_VFP_V3D16,
"Cortex-R8"),
+ ARM_CPU_OPT ("cortex-m23", ARM_ARCH_V8M_BASE,
+ FPU_NONE, "Cortex-M23"),
ARM_CPU_OPT ("cortex-m7", ARM_ARCH_V7EM, FPU_NONE, "Cortex-M7"),
ARM_CPU_OPT ("cortex-m4", ARM_ARCH_V7EM, FPU_NONE, "Cortex-M4"),
ARM_CPU_OPT ("cortex-m3", ARM_ARCH_V7M, FPU_NONE, "Cortex-M3"),
diff --git a/gas/doc/c-arm.texi b/gas/doc/c-arm.texi
index 0cf7390dc5f28dc34b33c377ff59f06f5aee2a89..565ef73250e957e2da11cc261ec9d4b5ccb9c7c2 100644
--- a/gas/doc/c-arm.texi
+++ b/gas/doc/c-arm.texi
@@ -131,6 +131,7 @@ recognized:
@code{cortex-r5},
@code{cortex-r7},
@code{cortex-r8},
+@code{cortex-m23},
@code{cortex-m7},
@code{cortex-m4},
@code{cortex-m3},