This is the mail archive of the binutils@sourceware.org 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]

[PATCH][M68K] Fix GAS entries of mcf52235 and mcf53017 and add entry for mcf5221x.


Hi,

The first of the attached patches fixes control register entries of MCF52235 and MCF53017 microcontrollers.

The second patch adds an entry for MCF5221x microcontrollers.

OK to commit? (though I don't have access to the repository, so feel free to do it yourself).


Thanks,


--
Maxim K.
CodeSourcery
2009-06-22  Maxim Kuvyrkov  <maxim@codesourcery.com>

	* config/tc-m68k.c (mcf52235_ctrl): Remove non-existent CACR, ACR[01].
	(mcf53017_ctrl): Fix RAMBAR.
Index: config/tc-m68k.c
===================================================================
RCS file: /scratch/gcc/repos/src/src/gas/config/tc-m68k.c,v
retrieving revision 1.108
diff -u -p -r1.108 tc-m68k.c
--- config/tc-m68k.c	12 Feb 2009 08:31:02 -0000	1.108
+++ config/tc-m68k.c	22 Jun 2009 15:00:28 -0000
@@ -210,7 +210,7 @@ static const enum m68k_register mcf52223
   0
 };
 static const enum m68k_register mcf52235_ctrl[] = {
-  VBR, CACR, ACR0, ACR1, FLASHBAR, RAMBAR, RAMBAR1,
+  VBR, FLASHBAR, RAMBAR, RAMBAR1,
   0
 };
 static const enum m68k_register mcf5225_ctrl[] = {
@@ -258,7 +258,7 @@ static const enum m68k_register mcf5282_
   0
 };
 static const enum m68k_register mcf53017_ctrl[] = {
-  VBR, CACR, ACR0, ACR1, RAMBAR0, RAMBAR,
+  VBR, CACR, ACR0, ACR1, RAMBAR, RAMBAR1,
   0
 };
 static const enum m68k_register mcf5307_ctrl[] = {
2009-06-22  Maxim Kuvyrkov  <maxim@codesourcery.com>

	* config/tc-m68k.c (mcf5221x_ctrl): New.
	(m68k_cpu): Add line for MCF5221x.
Index: config/tc-m68k.c
===================================================================
RCS file: /scratch/gcc/repos/src/src/gas/config/tc-m68k.c,v
retrieving revision 1.108
diff -u -p -r1.108 tc-m68k.c
--- config/tc-m68k.c	12 Feb 2009 08:31:02 -0000	1.108
+++ config/tc-m68k.c	22 Jun 2009 15:05:21 -0000
@@ -205,6 +205,10 @@ static const enum m68k_register mcf5216_
   VBR, CACR, ACR0, ACR1, FLASHBAR, RAMBAR, RAMBAR1,
   0
 };
+static const enum m68k_register mcf5221x_ctrl[] = {
+  VBR, FLASHBAR, RAMBAR, RAMBAR1,
+  0
+};
 static const enum m68k_register mcf52223_ctrl[] = {
   VBR, CACR, ACR0, ACR1, FLASHBAR, RAMBAR, RAMBAR1,
   0
@@ -622,6 +626,8 @@ static const struct m68k_cpu m68k_cpus[]
   {mcfisa_a|mcfisa_aa|mcfhwdiv|mcfemac|mcfusp,	mcf5216_ctrl, "5216", 0},
   {mcfisa_a|mcfisa_aa|mcfhwdiv|mcfemac|mcfusp,	mcf5216_ctrl, "521x", 2},
 
+  {mcfisa_a|mcfisa_aa|mcfhwdiv|mcfmac|mcfusp,   mcf5221x_ctrl, "5221x", 0},
+
   {mcfisa_a|mcfisa_aa|mcfhwdiv|mcfmac|mcfusp,   mcf52223_ctrl, "52221", -1},
   {mcfisa_a|mcfisa_aa|mcfhwdiv|mcfmac|mcfusp,   mcf52223_ctrl, "52223", 0},
 

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