mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-03 04:12:10 +08:00
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:
parent
d79fe0d643
commit
298c1ec2a0
@ -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.
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user