Move NOP from 0x00 to 0x0f.
authorAnthony Green <green@redhat.com>
Wed, 3 Feb 2010 12:47:06 +0000 (12:47 +0000)
committerAnthony Green <green@redhat.com>
Wed, 3 Feb 2010 12:47:06 +0000 (12:47 +0000)
opcodes/ChangeLog
opcodes/moxie-opc.c

index 7ab07efa60b937090f56cbb1fe0e9fbe94df2c05..d20b7761ae4b6d08e299c83887b9e40b5456deac 100644 (file)
@@ -1,3 +1,8 @@
+2010-02-03  Anthony Green  <green@moxielogic.com>
+
+       * moxie-opc.c (moxie_form1_opc_info): Move "nop" from 0x00 to
+       0x0f, and make 0x00 an illegal instruction.
+
 2010-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * opcodes/arm-dis.c (struct arm_private_data): New.
index 819476085a7d060e12b7c4d42ef5a4c39ea26e95..b493d1fb36f414b10c1cc3ed8712f8f8f1445ef4 100644 (file)
    oooo         - form 3 opcode number
    vvvvvvvvvv   - 10-bit immediate value.  */
 
+/* Note that currently two opcodes are reserved as bad, so that all
+   instructions starting with 0x00 and 0xff fault.  */
+
 const moxie_opc_info_t moxie_form1_opc_info[64] =
   {
-    { 0x00, MOXIE_F1_NARG, "nop" },
+    { 0x00, MOXIE_F1_NARG, "bad" },  // Reserved as bad.
     { 0x01, MOXIE_F1_A4,   "ldi.l" },
     { 0x02, MOXIE_F1_AB,   "mov" },
     { 0x03, MOXIE_F1_M,    "jsra" },
@@ -67,7 +70,7 @@ const moxie_opc_info_t moxie_form1_opc_info[64] =
     { 0x0c, MOXIE_F1_ABi4, "ldo.l" },
     { 0x0d, MOXIE_F1_AiB4, "sto.l" },
     { 0x0e, MOXIE_F1_AB,   "cmp" },
-    { 0x0f, MOXIE_F1_NARG, "bad" },
+    { 0x0f, MOXIE_F1_NARG, "nop" },
     { 0x10, MOXIE_F1_NARG, "bad" },
     { 0x11, MOXIE_F1_NARG, "bad" },
     { 0x12, MOXIE_F1_NARG, "bad" },
@@ -143,7 +146,7 @@ const moxie_opc_info_t moxie_form3_opc_info[16] =
     { 0x0c, MOXIE_F3_NARG, "bad" },
     { 0x0d, MOXIE_F3_NARG, "bad" },
     { 0x0e, MOXIE_F3_NARG, "bad" },
-    { 0x0f, MOXIE_F3_NARG, "bad" }
+    { 0x0f, MOXIE_F3_NARG, "bad" }  // Reserved as bad.
   };
 
 
This page took 0.026059 seconds and 4 git commands to generate.