opcodes: blackfin: catch invalid loopsetup insns

The LoopSetup insn is only valid when the reg field is 0-7, so
don't go decoding it incorrectly when reg is 8-15.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Mike Frysinger 2011-02-14 05:21:04 +00:00
parent d79fe0d643
commit 298c1ec2a0
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2011-02-14 Mike Frysinger <vapier@gentoo.org>
* bfin-dis.c (decode_LoopSetup_0): Return when reg is greater
than 7.
2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* configure: Regenerate.

View File

@ -2623,6 +2623,9 @@ decode_LoopSetup_0 (TIword iw0, TIword iw1, bfd_vma pc, disassemble_info *outf)
if (parallel)
return 0;
if (reg > 7)
return 0;
if (rop == 0)
{
OUTS (outf, "LSETUP");