opcodes: blackfin: fix decoding of many invalid insns
commit445dfa6c89615f9e25a8171bde9f2b6b122f8cae
authorMike Frysinger <vapier@gentoo.org>
Wed, 22 Sep 2010 21:53:46 +0000 (22 21:53 +0000)
committerMike Frysinger <vapier@gentoo.org>
Wed, 22 Sep 2010 21:53:46 +0000 (22 21:53 +0000)
tree6ae06ef9a0089dcb8390d8ebbd120d02862595ba
parent42ea3f197a3b79326ce9afa879f457d099904a78
opcodes: blackfin: fix decoding of many invalid insns

The Blackfin disassembler was originally based on the premise of parsing
valid opcodes all the time, so some of the opcode checking can be a bit
fuzzy.  This is exemplified in decoding of parallel insns where many
times things are decoded as invalid when in reality, they may not be
used in parallel combinations.  So add parallel checking to most insn
decoding routines so we see ILLEGAL and not just whatever insn happens
to be close to a valid mnemonic, as well as some additional sub-opcode
checks.

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
opcodes/ChangeLog
opcodes/bfin-dis.c