| OLD | NEW |
| 1 /* ia64-dis.c -- Disassemble ia64 instructions | 1 /* ia64-dis.c -- Disassemble ia64 instructions |
| 2 Copyright 1998, 1999, 2000, 2002, 2005, 2007, 2008, 2009 | 2 Copyright 1998, 1999, 2000, 2002, 2005, 2007, 2008, 2009, 2012 |
| 3 Free Software Foundation, Inc. | 3 Free Software Foundation, Inc. |
| 4 Contributed by David Mosberger-Tang <davidm@hpl.hp.com> | 4 Contributed by David Mosberger-Tang <davidm@hpl.hp.com> |
| 5 | 5 |
| 6 This file is part of the GNU opcodes library. | 6 This file is part of the GNU opcodes library. |
| 7 | 7 |
| 8 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 |
| 9 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 |
| 10 the Free Software Foundation; either version 3, or (at your option) | 10 the Free Software Foundation; either version 3, or (at your option) |
| 11 any later version. | 11 any later version. |
| 12 | 12 |
| 13 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 |
| 14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | 14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
| 15 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public | 15 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public |
| 16 License for more details. | 16 License for more details. |
| 17 | 17 |
| 18 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 |
| 19 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 |
| 20 Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA | 20 Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA |
| 21 02110-1301, USA. */ | 21 02110-1301, USA. */ |
| 22 | 22 |
| 23 #include "sysdep.h" |
| 23 #include <assert.h> | 24 #include <assert.h> |
| 24 #include <string.h> | |
| 25 | 25 |
| 26 #include "dis-asm.h" | 26 #include "dis-asm.h" |
| 27 #include "opcode/ia64.h" | 27 #include "opcode/ia64.h" |
| 28 | 28 |
| 29 #define NELEMS(a) ((int) (sizeof (a) / sizeof (a[0]))) | 29 #define NELEMS(a) ((int) (sizeof (a) / sizeof (a[0]))) |
| 30 | 30 |
| 31 /* Disassemble ia64 instruction. */ | 31 /* Disassemble ia64 instruction. */ |
| 32 | 32 |
| 33 /* Return the instruction type for OPCODE found in unit UNIT. */ | 33 /* Return the instruction type for OPCODE found in unit UNIT. */ |
| 34 | 34 |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 ia64_free_opcode ((struct ia64_opcode *)idesc); | 312 ia64_free_opcode ((struct ia64_opcode *)idesc); |
| 313 failed: | 313 failed: |
| 314 if (slotnum == 2) | 314 if (slotnum == 2) |
| 315 retval += 16 - 3*slot_multiplier; | 315 retval += 16 - 3*slot_multiplier; |
| 316 return retval; | 316 return retval; |
| 317 | 317 |
| 318 decoding_failed: | 318 decoding_failed: |
| 319 (*info->fprintf_func) (info->stream, " data8 %#011llx", (long long) insn)
; | 319 (*info->fprintf_func) (info->stream, " data8 %#011llx", (long long) insn)
; |
| 320 goto failed; | 320 goto failed; |
| 321 } | 321 } |
| OLD | NEW |