1 /* Select disassembly routine for specified architecture.
2 Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
3 2004, 2005 Free Software Foundation, Inc.
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
73 #define ARCH_xstormy16
78 #define INCLUDE_SHMEDIA
86 enum bfd_architecture a
= bfd_get_arch (abfd
);
87 disassembler_ftype disassemble
;
91 /* If you add a case to this table, also add it to the
92 ARCH_all definition right above this function. */
95 /* As far as I know we only handle big-endian 29k objects. */
96 disassemble
= print_insn_big_a29k
;
101 disassemble
= print_insn_alpha
;
107 disassemble
= arc_get_disassembler (abfd
);
113 if (bfd_big_endian (abfd
))
114 disassemble
= print_insn_big_arm
;
116 disassemble
= print_insn_little_arm
;
121 disassemble
= print_insn_avr
;
126 disassemble
= cris_get_disassembler (abfd
);
131 disassemble
= print_insn_crx
;
136 disassemble
= print_insn_d10v
;
141 disassemble
= print_insn_d30v
;
146 /* As far as I know we only handle big-endian DLX objects. */
147 disassemble
= print_insn_dlx
;
152 if (bfd_get_mach (abfd
) == bfd_mach_h8300h
153 || bfd_get_mach (abfd
) == bfd_mach_h8300hn
)
154 disassemble
= print_insn_h8300h
;
155 else if (bfd_get_mach (abfd
) == bfd_mach_h8300s
156 || bfd_get_mach (abfd
) == bfd_mach_h8300sn
157 || bfd_get_mach (abfd
) == bfd_mach_h8300sx
158 || bfd_get_mach (abfd
) == bfd_mach_h8300sxn
)
159 disassemble
= print_insn_h8300s
;
161 disassemble
= print_insn_h8300
;
166 disassemble
= print_insn_h8500
;
171 disassemble
= print_insn_hppa
;
176 disassemble
= print_insn_i370
;
181 disassemble
= print_insn_i386
;
186 disassemble
= print_insn_i860
;
191 disassemble
= print_insn_i960
;
196 disassemble
= print_insn_ia64
;
201 disassemble
= print_insn_ip2k
;
206 disassemble
= print_insn_fr30
;
211 disassemble
= print_insn_m32r
;
214 #if defined(ARCH_m68hc11) || defined(ARCH_m68hc12)
215 case bfd_arch_m68hc11
:
216 disassemble
= print_insn_m68hc11
;
218 case bfd_arch_m68hc12
:
219 disassemble
= print_insn_m68hc12
;
224 disassemble
= print_insn_m68k
;
229 disassemble
= print_insn_m88k
;
234 disassemble
= print_insn_maxq_little
;
239 disassemble
= print_insn_ms1
;
243 case bfd_arch_msp430
:
244 disassemble
= print_insn_msp430
;
249 disassemble
= print_insn_ns32k
;
254 disassemble
= print_insn_mcore
;
259 if (bfd_big_endian (abfd
))
260 disassemble
= print_insn_big_mips
;
262 disassemble
= print_insn_little_mips
;
267 disassemble
= print_insn_mmix
;
271 case bfd_arch_mn10200
:
272 disassemble
= print_insn_mn10200
;
276 case bfd_arch_mn10300
:
277 disassemble
= print_insn_mn10300
;
281 case bfd_arch_openrisc
:
282 disassemble
= print_insn_openrisc
;
287 if (bfd_big_endian (abfd
))
288 disassemble
= print_insn_big_or32
;
290 disassemble
= print_insn_little_or32
;
295 disassemble
= print_insn_pdp11
;
300 disassemble
= print_insn_pj
;
304 case bfd_arch_powerpc
:
305 if (bfd_big_endian (abfd
))
306 disassemble
= print_insn_big_powerpc
;
308 disassemble
= print_insn_little_powerpc
;
312 case bfd_arch_rs6000
:
313 if (bfd_get_mach (abfd
) == bfd_mach_ppc_620
)
314 disassemble
= print_insn_big_powerpc
;
316 disassemble
= print_insn_rs6000
;
321 disassemble
= print_insn_s390
;
326 disassemble
= print_insn_sh
;
331 disassemble
= print_insn_sparc
;
336 disassemble
= print_insn_tic30
;
341 disassemble
= print_insn_tic4x
;
345 case bfd_arch_tic54x
:
346 disassemble
= print_insn_tic54x
;
351 disassemble
= print_insn_tic80
;
356 disassemble
= print_insn_v850
;
361 disassemble
= print_insn_w65
;
364 #ifdef ARCH_xstormy16
365 case bfd_arch_xstormy16
:
366 disassemble
= print_insn_xstormy16
;
370 case bfd_arch_xtensa
:
371 disassemble
= print_insn_xtensa
;
376 if (bfd_get_mach(abfd
) == bfd_mach_z8001
)
377 disassemble
= print_insn_z8001
;
379 disassemble
= print_insn_z8002
;
384 disassemble
= print_insn_vax
;
389 disassemble
= print_insn_frv
;
393 case bfd_arch_iq2000
:
394 disassemble
= print_insn_iq2000
;
404 disassembler_usage (stream
)
405 FILE * stream ATTRIBUTE_UNUSED
;
408 print_arm_disassembler_options (stream
);
411 print_mips_disassembler_options (stream
);
414 print_ppc_disassembler_options (stream
);
421 disassemble_init_for_target (struct disassemble_info
* info
)
430 info
->symbol_is_valid
= arm_symbol_is_valid
;
435 info
->skip_zeroes
= 16;
440 info
->skip_zeroes
= 32;