1 /* Select disassembly routine for specified architecture.
2 Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
3 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. */
71 #define ARCH_xstormy16
76 #define INCLUDE_SHMEDIA
84 enum bfd_architecture a
= bfd_get_arch (abfd
);
85 disassembler_ftype disassemble
;
89 /* If you add a case to this table, also add it to the
90 ARCH_all definition right above this function. */
93 /* As far as I know we only handle big-endian 29k objects. */
94 disassemble
= print_insn_big_a29k
;
99 disassemble
= print_insn_alpha
;
105 disassemble
= arc_get_disassembler (abfd
);
111 if (bfd_big_endian (abfd
))
112 disassemble
= print_insn_big_arm
;
114 disassemble
= print_insn_little_arm
;
119 disassemble
= print_insn_avr
;
124 disassemble
= cris_get_disassembler (abfd
);
129 disassemble
= print_insn_d10v
;
134 disassemble
= print_insn_d30v
;
139 /* As far as I know we only handle big-endian DLX objects. */
140 disassemble
= print_insn_dlx
;
145 if (bfd_get_mach (abfd
) == bfd_mach_h8300h
146 || bfd_get_mach (abfd
) == bfd_mach_h8300hn
)
147 disassemble
= print_insn_h8300h
;
148 else if (bfd_get_mach (abfd
) == bfd_mach_h8300s
149 || bfd_get_mach (abfd
) == bfd_mach_h8300sn
150 || bfd_get_mach (abfd
) == bfd_mach_h8300sx
)
151 disassemble
= print_insn_h8300s
;
153 disassemble
= print_insn_h8300
;
158 disassemble
= print_insn_h8500
;
163 disassemble
= print_insn_hppa
;
168 disassemble
= print_insn_i370
;
173 disassemble
= print_insn_i386
;
178 disassemble
= print_insn_i860
;
183 disassemble
= print_insn_i960
;
188 disassemble
= print_insn_ia64
;
193 disassemble
= print_insn_ip2k
;
198 disassemble
= print_insn_fr30
;
203 disassemble
= print_insn_m32r
;
206 #if defined(ARCH_m68hc11) || defined(ARCH_m68hc12)
207 case bfd_arch_m68hc11
:
208 disassemble
= print_insn_m68hc11
;
210 case bfd_arch_m68hc12
:
211 disassemble
= print_insn_m68hc12
;
214 #if defined(ARCH_zpu)
216 disassemble
= print_insn_zpu
;
221 disassemble
= print_insn_m68k
;
226 disassemble
= print_insn_m88k
;
230 case bfd_arch_msp430
:
231 disassemble
= print_insn_msp430
;
236 disassemble
= print_insn_ns32k
;
241 disassemble
= print_insn_mcore
;
246 if (bfd_big_endian (abfd
))
247 disassemble
= print_insn_big_mips
;
249 disassemble
= print_insn_little_mips
;
254 disassemble
= print_insn_mmix
;
258 case bfd_arch_mn10200
:
259 disassemble
= print_insn_mn10200
;
263 case bfd_arch_mn10300
:
264 disassemble
= print_insn_mn10300
;
268 case bfd_arch_openrisc
:
269 disassemble
= print_insn_openrisc
;
274 if (bfd_big_endian (abfd
))
275 disassemble
= print_insn_big_or32
;
277 disassemble
= print_insn_little_or32
;
282 disassemble
= print_insn_pdp11
;
287 disassemble
= print_insn_pj
;
291 case bfd_arch_powerpc
:
292 if (bfd_big_endian (abfd
))
293 disassemble
= print_insn_big_powerpc
;
295 disassemble
= print_insn_little_powerpc
;
299 case bfd_arch_rs6000
:
300 if (bfd_get_mach (abfd
) == bfd_mach_ppc_620
)
301 disassemble
= print_insn_big_powerpc
;
303 disassemble
= print_insn_rs6000
;
308 disassemble
= print_insn_s390
;
313 disassemble
= print_insn_sh
;
318 disassemble
= print_insn_sparc
;
323 disassemble
= print_insn_tic30
;
328 disassemble
= print_insn_tic4x
;
332 case bfd_arch_tic54x
:
333 disassemble
= print_insn_tic54x
;
338 disassemble
= print_insn_tic80
;
343 disassemble
= print_insn_v850
;
348 disassemble
= print_insn_w65
;
351 #ifdef ARCH_xstormy16
352 case bfd_arch_xstormy16
:
353 disassemble
= print_insn_xstormy16
;
357 case bfd_arch_xtensa
:
358 disassemble
= print_insn_xtensa
;
363 if (bfd_get_mach(abfd
) == bfd_mach_z8001
)
364 disassemble
= print_insn_z8001
;
366 disassemble
= print_insn_z8002
;
371 disassemble
= print_insn_vax
;
376 disassemble
= print_insn_frv
;
380 case bfd_arch_iq2000
:
381 disassemble
= print_insn_iq2000
;
391 disassembler_usage (stream
)
392 FILE * stream ATTRIBUTE_UNUSED
;
395 print_arm_disassembler_options (stream
);
398 print_mips_disassembler_options (stream
);
401 print_ppc_disassembler_options (stream
);
408 disassemble_init_for_target (struct disassemble_info
* info
)
417 info
->symbol_is_valid
= arm_symbol_is_valid
;