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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
72 #define ARCH_xstormy16
77 #define INCLUDE_SHMEDIA
85 enum bfd_architecture a
= bfd_get_arch (abfd
);
86 disassembler_ftype disassemble
;
90 /* If you add a case to this table, also add it to the
91 ARCH_all definition right above this function. */
94 /* As far as I know we only handle big-endian 29k objects. */
95 disassemble
= print_insn_big_a29k
;
100 disassemble
= print_insn_alpha
;
106 disassemble
= arc_get_disassembler (abfd
);
112 if (bfd_big_endian (abfd
))
113 disassemble
= print_insn_big_arm
;
115 disassemble
= print_insn_little_arm
;
120 disassemble
= print_insn_avr
;
125 disassemble
= cris_get_disassembler (abfd
);
130 disassemble
= print_insn_crx
;
135 disassemble
= print_insn_d10v
;
140 disassemble
= print_insn_d30v
;
145 /* As far as I know we only handle big-endian DLX objects. */
146 disassemble
= print_insn_dlx
;
151 if (bfd_get_mach (abfd
) == bfd_mach_h8300h
152 || bfd_get_mach (abfd
) == bfd_mach_h8300hn
)
153 disassemble
= print_insn_h8300h
;
154 else if (bfd_get_mach (abfd
) == bfd_mach_h8300s
155 || bfd_get_mach (abfd
) == bfd_mach_h8300sn
156 || bfd_get_mach (abfd
) == bfd_mach_h8300sx
157 || bfd_get_mach (abfd
) == bfd_mach_h8300sxn
)
158 disassemble
= print_insn_h8300s
;
160 disassemble
= print_insn_h8300
;
165 disassemble
= print_insn_h8500
;
170 disassemble
= print_insn_hppa
;
175 disassemble
= print_insn_i370
;
180 disassemble
= print_insn_i386
;
185 disassemble
= print_insn_i860
;
190 disassemble
= print_insn_i960
;
195 disassemble
= print_insn_ia64
;
200 disassemble
= print_insn_ip2k
;
205 disassemble
= print_insn_fr30
;
210 disassemble
= print_insn_m32r
;
213 #if defined(ARCH_m68hc11) || defined(ARCH_m68hc12)
214 case bfd_arch_m68hc11
:
215 disassemble
= print_insn_m68hc11
;
217 case bfd_arch_m68hc12
:
218 disassemble
= print_insn_m68hc12
;
223 disassemble
= print_insn_m68k
;
228 disassemble
= print_insn_m88k
;
233 disassemble
= print_insn_maxq_little
;
237 case bfd_arch_msp430
:
238 disassemble
= print_insn_msp430
;
243 disassemble
= print_insn_ns32k
;
248 disassemble
= print_insn_mcore
;
253 if (bfd_big_endian (abfd
))
254 disassemble
= print_insn_big_mips
;
256 disassemble
= print_insn_little_mips
;
261 disassemble
= print_insn_mmix
;
265 case bfd_arch_mn10200
:
266 disassemble
= print_insn_mn10200
;
270 case bfd_arch_mn10300
:
271 disassemble
= print_insn_mn10300
;
275 case bfd_arch_openrisc
:
276 disassemble
= print_insn_openrisc
;
281 if (bfd_big_endian (abfd
))
282 disassemble
= print_insn_big_or32
;
284 disassemble
= print_insn_little_or32
;
289 disassemble
= print_insn_pdp11
;
294 disassemble
= print_insn_pj
;
298 case bfd_arch_powerpc
:
299 if (bfd_big_endian (abfd
))
300 disassemble
= print_insn_big_powerpc
;
302 disassemble
= print_insn_little_powerpc
;
306 case bfd_arch_rs6000
:
307 if (bfd_get_mach (abfd
) == bfd_mach_ppc_620
)
308 disassemble
= print_insn_big_powerpc
;
310 disassemble
= print_insn_rs6000
;
315 disassemble
= print_insn_s390
;
320 disassemble
= print_insn_sh
;
325 disassemble
= print_insn_sparc
;
330 disassemble
= print_insn_tic30
;
335 disassemble
= print_insn_tic4x
;
339 case bfd_arch_tic54x
:
340 disassemble
= print_insn_tic54x
;
345 disassemble
= print_insn_tic80
;
350 disassemble
= print_insn_v850
;
355 disassemble
= print_insn_w65
;
358 #ifdef ARCH_xstormy16
359 case bfd_arch_xstormy16
:
360 disassemble
= print_insn_xstormy16
;
364 case bfd_arch_xtensa
:
365 disassemble
= print_insn_xtensa
;
370 if (bfd_get_mach(abfd
) == bfd_mach_z8001
)
371 disassemble
= print_insn_z8001
;
373 disassemble
= print_insn_z8002
;
378 disassemble
= print_insn_vax
;
383 disassemble
= print_insn_frv
;
387 case bfd_arch_iq2000
:
388 disassemble
= print_insn_iq2000
;
398 disassembler_usage (stream
)
399 FILE * stream ATTRIBUTE_UNUSED
;
402 print_arm_disassembler_options (stream
);
405 print_mips_disassembler_options (stream
);
408 print_ppc_disassembler_options (stream
);
415 disassemble_init_for_target (struct disassemble_info
* info
)
424 info
->symbol_is_valid
= arm_symbol_is_valid
;
429 info
->skip_zeroes
= 16;
434 info
->skip_zeroes
= 32;