]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
opcodes: blackfin: fix decoding of many invalid insns
authorMike Frysinger <vapier@gentoo.org>
Wed, 22 Sep 2010 21:53:46 +0000 (21:53 +0000)
committerMike Frysinger <vapier@gentoo.org>
Wed, 22 Sep 2010 21:53:46 +0000 (21:53 +0000)
commit219b747a3b6a879303423836a4eea7372e43a4cd
treea22ef1d7fb9f22624d3f188d97f0fcd7b19cfe52
parent775f1cf0c29d662e29905b5b06f0dc079ba10e5a
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