public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [patch] tc-m68k.c: Add support for MCF51QE.
@ 2007-08-27 22:08 Kazu Hirata
  2007-08-28 11:21 ` Ben Elliston
  0 siblings, 1 reply; 2+ messages in thread
From: Kazu Hirata @ 2007-08-27 22:08 UTC (permalink / raw)
  To: binutils; +Cc: maxim

Hi,

Attached is a patch to add support for MCF51QE.

Tested by using -mcpu=51qe.  OK to apply?

Kazu Hirata

2007-08-27  Maxim Kuvyrkov  <maxim@codesourcery.com>

	* config/tc-m68k.c (mcf51qe_ctrl): Define 51QE control registers.
	(m68k_cpus): Define 51QE cpu.

Index: gas/config/tc-m68k.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-m68k.c,v
retrieving revision 1.94
diff -u -r1.94 tc-m68k.c
--- gas/config/tc-m68k.c	3 Jul 2007 11:01:04 -0000	1.94
+++ gas/config/tc-m68k.c	27 Aug 2007 18:46:38 -0000
@@ -176,6 +176,10 @@
   RAMBAR0, RAMBAR1, RAMBAR, MBAR,
   0
 };
+static const enum m68k_register mcf51qe_ctrl[] = {
+  VBR,
+  0
+};
 static const enum m68k_register mcf5206_ctrl[] = {
   CACR, ACR0, ACR1,  VBR, RAMBAR0, RAMBAR_ALT, MBAR,
   0
@@ -559,6 +563,8 @@
   {cpu32|m68881,				cpu32_ctrl, "68341", 1},
   {cpu32|m68881,				cpu32_ctrl, "68349", 1},
   {cpu32|m68881,				cpu32_ctrl, "68360", 1},
+
+  {mcfisa_a|mcfisa_c|mcfusp,                    mcf51qe_ctrl, "51qe", 0},
   
   {mcfisa_a,					mcf_ctrl, "5200", 0},
   {mcfisa_a,					mcf_ctrl, "5202", 1},

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [patch] tc-m68k.c: Add support for MCF51QE.
  2007-08-27 22:08 [patch] tc-m68k.c: Add support for MCF51QE Kazu Hirata
@ 2007-08-28 11:21 ` Ben Elliston
  0 siblings, 0 replies; 2+ messages in thread
From: Ben Elliston @ 2007-08-28 11:21 UTC (permalink / raw)
  To: Kazu Hirata; +Cc: binutils, maxim

On Mon, 2007-08-27 at 12:27 -0700, Kazu Hirata wrote:

> Attached is a patch to add support for MCF51QE.
> Tested by using -mcpu=51qe.  OK to apply?

> 2007-08-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
> 
> 	* config/tc-m68k.c (mcf51qe_ctrl): Define 51QE control registers.
> 	(m68k_cpus): Define 51QE cpu.

This is OK. Thanks, Kazu,

Ben

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-08-28  6:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-27 22:08 [patch] tc-m68k.c: Add support for MCF51QE Kazu Hirata
2007-08-28 11:21 ` Ben Elliston

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).