| OLD | NEW |
| 1 /* Disassembly routines for TMS320C54X architecture | 1 /* Disassembly routines for TMS320C54X architecture |
| 2 Copyright 1999, 2000, 2001, 2005, 2007, 2009 Free Software Foundation, Inc. | 2 Copyright 1999, 2000, 2001, 2005, 2007, 2009, 2012 |
| 3 Free Software Foundation, Inc. |
| 3 Contributed by Timothy Wall (twall@cygnus.com) | 4 Contributed by Timothy Wall (twall@cygnus.com) |
| 4 | 5 |
| 5 This file is part of the GNU opcodes library. | 6 This file is part of the GNU opcodes library. |
| 6 | 7 |
| 7 This library is free software; you can redistribute it and/or modify | 8 This library is free software; you can redistribute it and/or modify |
| 8 it under the terms of the GNU General Public License as published by | 9 it under the terms of the GNU General Public License as published by |
| 9 the Free Software Foundation; either version 3, or (at your option) | 10 the Free Software Foundation; either version 3, or (at your option) |
| 10 any later version. | 11 any later version. |
| 11 | 12 |
| 12 It is distributed in the hope that it will be useful, but WITHOUT | 13 It is distributed in the hope that it will be useful, but WITHOUT |
| 13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | 14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
| 14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public | 15 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public |
| 15 License for more details. | 16 License for more details. |
| 16 | 17 |
| 17 You should have received a copy of the GNU General Public License | 18 You should have received a copy of the GNU General Public License |
| 18 along with this file; see the file COPYING. If not, write to the | 19 along with this file; see the file COPYING. If not, write to the |
| 19 Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston, | 20 Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston, |
| 20 MA 02110-1301, USA. */ | 21 MA 02110-1301, USA. */ |
| 21 | 22 |
| 23 #include "sysdep.h" |
| 22 #include <errno.h> | 24 #include <errno.h> |
| 23 #include <math.h> | 25 #include <math.h> |
| 24 #include <stdlib.h> | 26 #include <stdlib.h> |
| 25 #include "sysdep.h" | |
| 26 #include "dis-asm.h" | 27 #include "dis-asm.h" |
| 27 #include "opcode/tic54x.h" | 28 #include "opcode/tic54x.h" |
| 28 #include "coff/tic54x.h" | 29 #include "coff/tic54x.h" |
| 29 | 30 |
| 30 static int has_lkaddr (unsigned short, const insn_template *); | 31 static int has_lkaddr (unsigned short, const insn_template *); |
| 31 static int get_insn_size (unsigned short, const insn_template *); | 32 static int get_insn_size (unsigned short, const insn_template *); |
| 32 static int print_instruction (disassemble_info *, bfd_vma, | 33 static int print_instruction (disassemble_info *, bfd_vma, |
| 33 unsigned short, const char *, | 34 unsigned short, const char *, |
| 34 const enum optype [], int, int); | 35 const enum optype [], int, int); |
| 35 static int print_parallel_instruction (disassemble_info *, bfd_vma, | 36 static int print_parallel_instruction (disassemble_info *, bfd_vma, |
| (...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 594 (opcode & 0x03) ? ", " : ""); | 595 (opcode & 0x03) ? ", " : ""); |
| 595 if (opcode & 0x03) | 596 if (opcode & 0x03) |
| 596 buf += sprintf (buf, "%s", | 597 buf += sprintf (buf, "%s", |
| 597 ((opcode & 0x03) == 0x03) ? "bio" : "nbio"); | 598 ((opcode & 0x03) == 0x03) ? "bio" : "nbio"); |
| 598 } | 599 } |
| 599 else | 600 else |
| 600 buf += sprintf (buf, "unc"); | 601 buf += sprintf (buf, "unc"); |
| 601 | 602 |
| 602 return buf - start; | 603 return buf - start; |
| 603 } | 604 } |
| OLD | NEW |