| OLD | NEW |
| 1 /* xtensa-dis.c. Disassembly functions for Xtensa. | 1 /* xtensa-dis.c. Disassembly functions for Xtensa. |
| 2 Copyright 2003, 2004, 2005, 2007 Free Software Foundation, Inc. | 2 Copyright 2003, 2004, 2005, 2007, 2012 Free Software Foundation, Inc. |
| 3 Contributed by Bob Wilson at Tensilica, Inc. (bwilson@tensilica.com) | 3 Contributed by Bob Wilson at Tensilica, Inc. (bwilson@tensilica.com) |
| 4 | 4 |
| 5 This file is part of the GNU opcodes library. | 5 This file is part of the GNU opcodes library. |
| 6 | 6 |
| 7 This library is free software; you can redistribute it and/or modify | 7 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 | 8 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) | 9 the Free Software Foundation; either version 3, or (at your option) |
| 10 any later version. | 10 any later version. |
| 11 | 11 |
| 12 It is distributed in the hope that it will be useful, but WITHOUT | 12 It is distributed in the hope that it will be useful, but WITHOUT |
| 13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | 13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
| 14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public | 14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public |
| 15 License for more details. | 15 License for more details. |
| 16 | 16 |
| 17 You should have received a copy of the GNU General Public License | 17 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 | 18 along with this file; see the file COPYING. If not, write to the |
| 19 Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston, | 19 Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston, |
| 20 MA 02110-1301, USA. */ | 20 MA 02110-1301, USA. */ |
| 21 | 21 |
| 22 #include "sysdep.h" |
| 22 #include <stdlib.h> | 23 #include <stdlib.h> |
| 23 #include <stdio.h> | 24 #include <stdio.h> |
| 24 #include <sys/types.h> | 25 #include <sys/types.h> |
| 25 #include <string.h> | 26 #include <string.h> |
| 26 #include "xtensa-isa.h" | 27 #include "xtensa-isa.h" |
| 27 #include "ansidecl.h" | 28 #include "ansidecl.h" |
| 28 #include "libiberty.h" | 29 #include "libiberty.h" |
| 29 #include "sysdep.h" | |
| 30 #include "dis-asm.h" | 30 #include "dis-asm.h" |
| 31 | 31 |
| 32 #include <setjmp.h> | 32 #include <setjmp.h> |
| 33 | 33 |
| 34 extern xtensa_isa xtensa_default_isa; | 34 extern xtensa_isa xtensa_default_isa; |
| 35 | 35 |
| 36 #ifndef MAX | 36 #ifndef MAX |
| 37 #define MAX(a,b) (a > b ? a : b) | 37 #define MAX(a,b) (a > b ? a : b) |
| 38 #endif | 38 #endif |
| 39 | 39 |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 | 258 |
| 259 if (nslots > 1) | 259 if (nslots > 1) |
| 260 (*info->fprintf_func) (info->stream, " }"); | 260 (*info->fprintf_func) (info->stream, " }"); |
| 261 | 261 |
| 262 info->bytes_per_chunk = size; | 262 info->bytes_per_chunk = size; |
| 263 info->display_endian = info->endian; | 263 info->display_endian = info->endian; |
| 264 | 264 |
| 265 return size; | 265 return size; |
| 266 } | 266 } |
| 267 | 267 |
| OLD | NEW |