This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB 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]

[RFA] sh-sim: implement movca.l


Here's an instruction that's easy to add -- since the simulator
does not simulate a cache, it's identical to a mov.

2003-06-27  Michael Snyder  <msnyder@redhat.com>

	* gencode.c (op tab): Implement movca.l.

Index: gencode.c
===================================================================
RCS file: /cvs/src/src/sim/sh/gencode.c,v
retrieving revision 1.6
diff -p -r1.6 gencode.c
*** gencode.c	27 Jun 2003 21:18:42 -0000	1.6
--- gencode.c	27 Jun 2003 21:22:15 -0000
*************** op tab[] =
*** 750,758 ****
      "R0 = ((i + 4 + PH2T (PC)) & ~0x3);",
    },
  
!   { "0", "", "movca.l @R0, <REG_N>", "0000nnnn11000011",
!     "/* FIXME: Not implemented */",
!     "RAISE_EXCEPTION (SIGILL);",
    },
  
    { "n", "", "movt <REG_N>", "0000nnnn00101001",
--- 750,759 ----
      "R0 = ((i + 4 + PH2T (PC)) & ~0x3);",
    },
  
!   { "", "n0", "movca.l R0, @<REG_N>", "0000nnnn11000011",
!     "/* We don't simulate cache, so this insn is identical to mov.  */",
!     "MA (1);",
!     "WLAT (R[n], R[0]);",
    },
  
    { "n", "", "movt <REG_N>", "0000nnnn00101001",

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