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]

Re: [m68k] Final part of architecture cleanup


The v4e has ASID as a control register, its value is 0x003, as well as
ACR0-3.  I've used the following patch to call out for the v4e movec
register names instead of their m68k equivalents:

Index: tc-m68k.c
===================================================================
RCS file: /cvs/eps/dev_eng/sw/products/Linux/FireEngine/LinuxTools/crosstool/build/m68k-linux/gcc-3.4.3-glibc-2.3.2/binutils-2.15/gas/config/tc-m68k.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -c -3 -p -r1.2 -r1.3
*** tc-m68k.c	12 Mar 2005 00:40:48 -0000	1.2
--- tc-m68k.c	26 Sep 2005 20:46:23 -0000	1.3
*************** static const enum m68k_register mcf528x_
*** 176,182 ****
    0
  };
  static const enum m68k_register mcfv4e_control_regs[] = {
!   CACR, TC, ITT0, ITT1, DTT0, DTT1, BUSCR, VBR, PC, ROMBAR,
    ROMBAR1, RAMBAR0, RAMBAR1, MPCR, EDRAMBAR, SECMBAR, MBAR, MBAR0, MBAR1,
    PCR1U0, PCR1L0, PCR1U1, PCR1L1, PCR2U0, PCR2L0, PCR2U1, PCR2L1,
    PCR3U0, PCR3L0, PCR3U1, PCR3L1,
--- 176,182 ----
    0
  };
  static const enum m68k_register mcfv4e_control_regs[] = {
!   CACR, ASID, ACR0, ACR1, ACR2, ACR3, BUSCR, VBR, PC, ROMBAR,
    ROMBAR1, RAMBAR0, RAMBAR1, MPCR, EDRAMBAR, SECMBAR, MBAR, MBAR0, MBAR1,
    PCR1U0, PCR1L0, PCR1U1, PCR1L1, PCR2U0, PCR2L0, PCR2U1, PCR2L1,
    PCR3U0, PCR3L0, PCR3U1, PCR3L1,
*************** m68k_ip (instring)
*** 2765,2770 ****
--- 2765,2771 ----
  	    case CACR:
  	      tmpreg = 0x002;
  	      break;
+ 	    case ASID:
  	    case TC:
  	      tmpreg = 0x003;
  	      break;
*************** static const struct init_entry init_tabl
*** 3564,3570 ****
    { "mpcr",     MPCR },		/* mcfv4e registers.  */
    { "edrambar", EDRAMBAR },	/* mcfv4e registers.  */
    { "secmbar",  SECMBAR },	/* mcfv4e registers.  */
!   { "asid",     TC },		/* mcfv4e registers.  */
    { "mmubar",   BUSCR },	/* mcfv4e registers.  */
    { "pcr1u0",   PCR1U0 },	/* mcfv4e registers.  */
    { "pcr1l0",   PCR1L0 },	/* mcfv4e registers.  */
--- 3565,3571 ----
    { "mpcr",     MPCR },		/* mcfv4e registers.  */
    { "edrambar", EDRAMBAR },	/* mcfv4e registers.  */
    { "secmbar",  SECMBAR },	/* mcfv4e registers.  */
!   { "asid",     ASID },		/* mcfv4e registers.  */
    { "mmubar",   BUSCR },	/* mcfv4e registers.  */
    { "pcr1u0",   PCR1U0 },	/* mcfv4e registers.  */
    { "pcr1l0",   PCR1L0 },	/* mcfv4e registers.  */

-- 
Peter Barada
peter@the-baradas.com


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