aboutsummaryrefslogtreecommitdiff
path: root/opcodes/moxie-opc.c
diff options
context:
space:
mode:
authorAnthony Green <green@redhat.com>2010-02-03 12:47:06 +0000
committerAnthony Green <green@redhat.com>2010-02-03 12:47:06 +0000
commitf3d55a94f36f5ce24656e69c868c21580b5dd63c (patch)
treed7e5b3c65314955ba81d43e325aaa7a4c0b4f28b /opcodes/moxie-opc.c
parent927be08ec81c122ef4872ec6d588965cbe05d7f9 (diff)
downloadgdb-f3d55a94f36f5ce24656e69c868c21580b5dd63c.zip
gdb-f3d55a94f36f5ce24656e69c868c21580b5dd63c.tar.gz
gdb-f3d55a94f36f5ce24656e69c868c21580b5dd63c.tar.bz2
Move NOP from 0x00 to 0x0f.
Diffstat (limited to 'opcodes/moxie-opc.c')
-rw-r--r--opcodes/moxie-opc.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/opcodes/moxie-opc.c b/opcodes/moxie-opc.c
index 8194760..b493d1f 100644
--- a/opcodes/moxie-opc.c
+++ b/opcodes/moxie-opc.c
@@ -50,9 +50,12 @@
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.
};