This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Correct control register set for Coldfire MCF5249


Nick Clifton wrote:

Thanks - please could you supply a ChangeLog entry to go with this patch ?

Sure. Here's the new patch.


Linus

Index: gas/ChangeLog
===================================================================
RCS file: /cvs/src/src/gas/ChangeLog,v
retrieving revision 1.2221
diff -u -r1.2221 ChangeLog
--- gas/ChangeLog	5 Oct 2004 13:51:35 -0000	1.2221
+++ gas/ChangeLog	8 Oct 2004 04:58:55 -0000
@@ -1,3 +1,10 @@
+2004-10-07  Linus Nielsen Feltzing  <linus@haxx.se>
+
+	* m68k-parse.h (enum m68k_register): New control register, MBAR2
+	(for MCF5249)
+
+	* tc-m68k.c: Correct control register set for MCF5249
+	
 2004-10-05  Paul Brook  <paul@codesourcery.com>
 
 	* config/tc-arm.c (unwind): New variable.
Index: gas/config/m68k-parse.h
===================================================================
RCS file: /cvs/src/src/gas/config/m68k-parse.h,v
retrieving revision 1.6
diff -u -r1.6 m68k-parse.h
--- gas/config/m68k-parse.h	22 Apr 2004 10:33:15 -0000	1.6
+++ gas/config/m68k-parse.h	8 Oct 2004 04:58:55 -0000
@@ -124,6 +124,7 @@
   MBAR0, MBAR1,			/* mcfv4e added these.  */
   ACR0, ACR1, ACR2, ACR3,       /* mcf5200 added these.  */
   FLASHBAR, RAMBAR,  		/* mcf528x added these.  */
+  MBAR2,  		        /* mcf5249 added this.  */
   MBAR,
 #define last_movec_reg MBAR
   /* End of movec ordering constraints.  */
Index: gas/config/tc-m68k.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-m68k.c,v
retrieving revision 1.58
diff -u -r1.58 tc-m68k.c
--- gas/config/tc-m68k.c	30 Sep 2004 17:08:50 -0000	1.58
+++ gas/config/tc-m68k.c	8 Oct 2004 04:58:57 -0000
@@ -178,6 +178,10 @@
   RAMBAR0, RAMBAR1, MBAR,
   0
 };
+static const enum m68k_register mcf5249_control_regs[] = {
+  CACR, ACR0, ACR1, VBR, RAMBAR0, RAMBAR1, MBAR, MBAR2,
+  0
+};
 static const enum m68k_register mcf528x_control_regs[] = {
   CACR, ACR0, ACR1, VBR, FLASHBAR, RAMBAR,
   0
@@ -2990,6 +2994,7 @@
               break;
             case MBAR0:
             case SECMBAR:
+            case MBAR2:
               tmpreg = 0xC0E;
               break;
             case MBAR1:
@@ -3754,7 +3759,9 @@
 
   { "flashbar", FLASHBAR }, 	/* mcf528x registers.  */
   { "rambar",   RAMBAR },  	/* mcf528x registers.  */
-  /* End of control registers.  */
+
+  { "mbar2",    MBAR2 },  	/* mcf5249 registers.  */
+/* End of control registers.  */
 
   { "ac", AC },
   { "bc", BC },
@@ -4341,11 +4348,13 @@
       break;
     case mcf5200:
     case mcf5206e:
-    case mcf5249:
     case mcf5307:
     case mcf5407:
       control_regs = mcf_control_regs;
       break;
+    case mcf5249:
+      control_regs = mcf5249_control_regs;
+      break;
     case mcf528x:
     case mcf521x:
       control_regs = mcf528x_control_regs;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]