| OLD | NEW |
| 1 /* tilepro-dis.c. Disassembly routines for the TILEPro architecture. | 1 /* tilepro-dis.c. Disassembly routines for the TILEPro architecture. |
| 2 Copyright 2011 Free Software Foundation, Inc. | 2 Copyright 2011, 2012 Free Software Foundation, Inc. |
| 3 | 3 |
| 4 This file is part of the GNU opcodes library. | 4 This file is part of the GNU opcodes library. |
| 5 | 5 |
| 6 This program is free software; you can redistribute it and/or modify | 6 This program is free software; you can redistribute it and/or modify |
| 7 it under the terms of the GNU General Public License as published by | 7 it under the terms of the GNU General Public License as published by |
| 8 the Free Software Foundation; either version 3 of the License, or | 8 the Free Software Foundation; either version 3 of the License, or |
| 9 (at your option) any later version. | 9 (at your option) any later version. |
| 10 | 10 |
| 11 This program is distributed in the hope that it will be useful, | 11 This program is distributed in the hope that it will be useful, |
| 12 but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 GNU General Public License for more details. | 14 GNU General Public License for more details. |
| 15 | 15 |
| 16 You should have received a copy of the GNU General Public License | 16 You should have received a copy of the GNU General Public License |
| 17 along with this program; if not, write to the Free Software | 17 along with this program; if not, write to the Free Software |
| 18 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, | 18 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, |
| 19 MA 02110-1301, USA. */ | 19 MA 02110-1301, USA. */ |
| 20 | 20 |
| 21 #include "sysdep.h" |
| 21 #include <stddef.h> | 22 #include <stddef.h> |
| 22 #include <assert.h> | 23 #include <assert.h> |
| 23 #include "bfd.h" | 24 #include "bfd.h" |
| 24 #include "elf/tilepro.h" | 25 #include "elf/tilepro.h" |
| 25 #include "elf-bfd.h" | 26 #include "elf-bfd.h" |
| 26 #include "sysdep.h" | |
| 27 #include "dis-asm.h" | 27 #include "dis-asm.h" |
| 28 #include "opcode/tilepro.h" | 28 #include "opcode/tilepro.h" |
| 29 | 29 |
| 30 | 30 |
| 31 #define TREG_ZERO 63 | 31 #define TREG_ZERO 63 |
| 32 | 32 |
| 33 static int | 33 static int |
| 34 contains_insn (tilepro_mnemonic expected_mnemonic, | 34 contains_insn (tilepro_mnemonic expected_mnemonic, |
| 35 int expected_first_operand, | 35 int expected_first_operand, |
| 36 int expected_second_operand, | 36 int expected_second_operand, |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 | 223 |
| 224 default: | 224 default: |
| 225 abort (); | 225 abort (); |
| 226 } | 226 } |
| 227 } | 227 } |
| 228 } | 228 } |
| 229 info->fprintf_func (info->stream, " }"); | 229 info->fprintf_func (info->stream, " }"); |
| 230 | 230 |
| 231 return TILEPRO_BUNDLE_SIZE_IN_BYTES; | 231 return TILEPRO_BUNDLE_SIZE_IN_BYTES; |
| 232 } | 232 } |
| OLD | NEW |