OSDN Git Service

2003-06-27 Michael Snyder <msnyder@redhat.com>
authorMichael Snyder <msnyder@specifix.com>
Wed, 23 Jul 2003 21:23:32 +0000 (21:23 +0000)
committerMichael Snyder <msnyder@specifix.com>
Wed, 23 Jul 2003 21:23:32 +0000 (21:23 +0000)
        * gencode.c (op tab): Implement movca.l.

sim/sh/ChangeLog
sim/sh/gencode.c

index ad4bd8f..2b6624d 100644 (file)
@@ -4,6 +4,7 @@
 
 2003-06-27  Michael Snyder  <msnyder@redhat.com>
 
+       * gencode.c (op tab): Implement movca.l.
        * gencode.c (op movsxy_tab): Fix an error in the bit pattern.
        * gencode.c (gensim_caselist): The movy instructions use
        registers R6 and R7 (not R4 and R5 like the movx insns).
index e8e780f..ea6d323 100644 (file)
@@ -750,9 +750,10 @@ op tab[] =
     "R0 = ((i + 4 + PH2T (PC)) & ~0x3);",
   },
 
-  { "0", "", "movca.l @R0, <REG_N>", "0000nnnn11000011",
-    "/* FIXME: Not implemented */",
-    "RAISE_EXCEPTION (SIGILL);",
+  { "", "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",