[PATCH] Add support for ARM Cortex-M0

Daniel Gutson dgutson@codesourcery.com
Thu Mar 19 01:20:00 GMT 2009


This patch adds support for processor ARM Cortex-M0, cloning the behavior of ARM Cortex-M1.

Additionally, the patch adds the Cortex-M1 cpu entry in c-arm.texi which was missing.

Please note that I don't have write access, so I'd need someone to commit this for me, in the case of being accepted.

Thanks,
	Daniel.


2009-03-18  Daniel Gutson  <dgutson@codesourcery.com>

	gas/
	* config/tc-arm.c (arm_cpus): Add entry for ARM Cortex-M0.
	* doc/c-arm.texi: Added codes for processors ARM Cortex-M0 and Cortex-M1.

Index: config/tc-arm.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-arm.c,v
retrieving revision 1.378
diff -u -p -r1.378 tc-arm.c
--- config/tc-arm.c	18 Mar 2009 15:28:24 -0000	1.378
+++ config/tc-arm.c	19 Mar 2009 01:06:19 -0000
@@ -20726,6 +20726,7 @@ static const struct arm_cpu_option_table
   {"cortex-r4",		ARM_ARCH_V7R,	 FPU_NONE,	  NULL},
   {"cortex-m3",		ARM_ARCH_V7M,	 FPU_NONE,	  NULL},
   {"cortex-m1",		ARM_ARCH_V6M,	 FPU_NONE,	  NULL},
+  {"cortex-m0",		ARM_ARCH_V6M,	 FPU_NONE,	  NULL},
   /* ??? XSCALE is really an architecture.  */
   {"xscale",		ARM_ARCH_XSCALE, FPU_ARCH_VFP_V2, NULL},
   /* ??? iwmmxt is not a processor.  */
Index: doc/c-arm.texi
===================================================================
RCS file: /cvs/src/src/gas/doc/c-arm.texi,v
retrieving revision 1.55
diff -u -p -r1.55 c-arm.texi
--- doc/c-arm.texi	29 Jan 2009 07:08:12 -0000	1.55
+++ doc/c-arm.texi	19 Mar 2009 01:06:19 -0000
@@ -116,6 +116,8 @@ recognized: 
 @code{cortex-a9},
 @code{cortex-r4},
 @code{cortex-m3},
+@code{cortex-m1},
+@code{cortex-m0},
 @code{ep9312} (ARM920 with Cirrus Maverick coprocessor),
 @code{i80200} (Intel XScale processor)
 @code{iwmmxt} (Intel(r) XScale processor with Wireless MMX(tm) technology coprocessor)



More information about the Binutils mailing list