OLD | NEW |
1 /* Disassemble SPU instructions | 1 /* Disassemble SPU instructions |
2 | 2 |
3 Copyright 2006, 2007 Free Software Foundation, Inc. | 3 Copyright 2006, 2007, 2012 Free Software Foundation, Inc. |
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 <stdio.h> | 23 #include <stdio.h> |
23 #include "sysdep.h" | |
24 #include "dis-asm.h" | 24 #include "dis-asm.h" |
25 #include "opcode/spu.h" | 25 #include "opcode/spu.h" |
26 | 26 |
27 /* This file provides a disassembler function which uses | 27 /* This file provides a disassembler function which uses |
28 the disassembler interface defined in dis-asm.h. */ | 28 the disassembler interface defined in dis-asm.h. */ |
29 | 29 |
30 extern const struct spu_opcode spu_opcodes[]; | 30 extern const struct spu_opcode spu_opcodes[]; |
31 extern const int spu_num_opcodes; | 31 extern const int spu_num_opcodes; |
32 | 32 |
33 static const struct spu_opcode *spu_disassemble_table[(1<<11)]; | 33 static const struct spu_opcode *spu_disassemble_table[(1<<11)]; |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 { | 252 { |
253 (*info->fprintf_func) (info->stream, ")"); | 253 (*info->fprintf_func) (info->stream, ")"); |
254 paren--; | 254 paren--; |
255 } | 255 } |
256 } | 256 } |
257 if (hex_value > 16) | 257 if (hex_value > 16) |
258 (*info->fprintf_func) (info->stream, "\t# %x", hex_value); | 258 (*info->fprintf_func) (info->stream, "\t# %x", hex_value); |
259 } | 259 } |
260 return 4; | 260 return 4; |
261 } | 261 } |
OLD | NEW |