aboutsummaryrefslogtreecommitdiff
path: root/opcodes/msp430-dis.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2015-06-04 16:33:12 +0100
committerNick Clifton <nickc@redhat.com>2015-06-04 16:33:12 +0100
commit13be46a23c97f8bdb4ac028c1498197e44fe2e62 (patch)
tree90c98daef4ec5d15cc6f2717142ff3c70fe550fb /opcodes/msp430-dis.c
parent239c0f4cebf8da3914597e2e296f5d172c2c62fb (diff)
downloadgdb-13be46a23c97f8bdb4ac028c1498197e44fe2e62.zip
gdb-13be46a23c97f8bdb4ac028c1498197e44fe2e62.tar.gz
gdb-13be46a23c97f8bdb4ac028c1498197e44fe2e62.tar.bz2
Fixes the check for emulated MSP430 instrucrtions that take no operands.
PR 18474 * msp430-dis.c (msp430_nooperands): Fix check for emulated insns.
Diffstat (limited to 'opcodes/msp430-dis.c')
-rw-r--r--opcodes/msp430-dis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/msp430-dis.c b/opcodes/msp430-dis.c
index 9c6f659..15f3eca 100644
--- a/opcodes/msp430-dis.c
+++ b/opcodes/msp430-dis.c
@@ -66,7 +66,7 @@ msp430_nooperands (struct msp430_opcode_s *opcode,
if (opcode->fmt == 0)
{
- if ((insn & 0x0f00) != 3 || (insn & 0x0f00) != 2)
+ if ((insn & 0x0f00) != 0x0300 || (insn & 0x0f00) != 0x0200)
return 0;
strcpy (comm, "emulated...");