This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[patch, gas, m68k] Couple of fixes for ColdFire
- From: Maxim Kuvyrkov <maxim at codesourcery dot com>
- To: binutils <binutils at sourceware dot org>
- Cc: Nick Clifton <nickc at redhat dot com>, Andreas Schwab <schwab at linux-m68k dot org>
- Date: Wed, 22 Jul 2009 15:50:23 +0400
- Subject: [patch, gas, m68k] Couple of fixes for ColdFire
Hello,
The attached two patches are small fixes for ColdFire microcontrollers.
The first patch fixes description of control registers of MCF52235 and
MCF53017 microcontrollers and the second patch adds support for MCF5221x
microcontrollers.
OK for mainline?
Thanks,
--
Maxim K.
CodeSourcery
2009-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
* config/tc-m68k.c (mcf52235_ctrl): Remove non-existent CACR, ACR[01].
(mcf53017_ctrl): Fix RAMBAR.
Index: gas/config/tc-m68k.c
===================================================================
--- gas/config/tc-m68k.c (revision 250180)
+++ gas/config/tc-m68k.c (revision 250181)
@@ -210,7 +210,7 @@
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 @@
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-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
* config/tc-m68k.c (mcf5221x_ctrl): New.
(m68k_cpu): Add line for MCF5221x.
Index: gas/config/tc-m68k.c
===================================================================
--- gas/config/tc-m68k.c (revision 253109)
+++ gas/config/tc-m68k.c (revision 253110)
@@ -205,6 +205,10 @@
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 @@
{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},