OLD | NEW |
1 /* Print instructions for the Texas TMS320C[34]X, for GDB and GNU Binutils. | 1 /* Print instructions for the Texas TMS320C[34]X, for GDB and GNU Binutils. |
2 | 2 |
3 Copyright 2002, 2003, 2005, 2007 Free Software Foundation, Inc. | 3 Copyright 2002, 2003, 2005, 2007, 2012 Free Software Foundation, Inc. |
4 | 4 |
5 Contributed by Michael P. Hayes (m.hayes@elec.canterbury.ac.nz) | 5 Contributed by Michael P. Hayes (m.hayes@elec.canterbury.ac.nz) |
6 | 6 |
7 This file is part of the GNU opcodes library. | 7 This file is part of the GNU opcodes library. |
8 | 8 |
9 This library is free software; you can redistribute it and/or modify | 9 This library is free software; you can redistribute it and/or modify |
10 it under the terms of the GNU General Public License as published by | 10 it under the terms of the GNU General Public License as published by |
11 the Free Software Foundation; either version 3, or (at your option) | 11 the Free Software Foundation; either version 3, or (at your option) |
12 any later version. | 12 any later version. |
13 | 13 |
14 It is distributed in the hope that it will be useful, but WITHOUT | 14 It is distributed in the hope that it will be useful, but WITHOUT |
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | 15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
16 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public | 16 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public |
17 License for more details. | 17 License for more details. |
18 | 18 |
19 You should have received a copy of the GNU General Public License | 19 You should have received a copy of the GNU General Public License |
20 along with this program; if not, write to the Free Software | 20 along with this program; if not, write to the Free Software |
21 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, | 21 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, |
22 MA 02110-1301, USA. */ | 22 MA 02110-1301, USA. */ |
23 | 23 |
| 24 #include "sysdep.h" |
24 #include <math.h> | 25 #include <math.h> |
25 #include "libiberty.h" | 26 #include "libiberty.h" |
26 #include "dis-asm.h" | 27 #include "dis-asm.h" |
27 #include "opcode/tic4x.h" | 28 #include "opcode/tic4x.h" |
28 | 29 |
29 #define TIC4X_DEBUG 0 | 30 #define TIC4X_DEBUG 0 |
30 | 31 |
31 #define TIC4X_HASH_SIZE 11 /* 11 (bits) and above should give unique entries
. */ | 32 #define TIC4X_HASH_SIZE 11 /* 11 (bits) and above should give unique entries
. */ |
32 #define TIC4X_SPESOP_SIZE 8 /* Max 8. ops for special instructions. */ | 33 #define TIC4X_SPESOP_SIZE 8 /* Max 8. ops for special instructions. */ |
33 | 34 |
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
762 } | 763 } |
763 | 764 |
764 pc = memaddr; | 765 pc = memaddr; |
765 op = bfd_getl32 (buffer); | 766 op = bfd_getl32 (buffer); |
766 info->bytes_per_line = 4; | 767 info->bytes_per_line = 4; |
767 info->bytes_per_chunk = 4; | 768 info->bytes_per_chunk = 4; |
768 info->octets_per_byte = 4; | 769 info->octets_per_byte = 4; |
769 info->display_endian = BFD_ENDIAN_LITTLE; | 770 info->display_endian = BFD_ENDIAN_LITTLE; |
770 return tic4x_disassemble (pc, op, info) * 4; | 771 return tic4x_disassemble (pc, op, info) * 4; |
771 } | 772 } |
OLD | NEW |