This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[RFA] sh-sim: implement movca.l
- From: Michael Snyder <msnyder at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Cc: Elena Zannoni <ezannoni at redhat dot com>
- Date: Fri, 27 Jun 2003 14:24:13 -0700
- Subject: [RFA] sh-sim: implement movca.l
- Organization: Red Hat, Inc.
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",