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
79 #define INCLUDE_SHMEDIA
83 #include "m32c-desc.h"
90 enum bfd_architecture a = bfd_get_arch (abfd);
91 disassembler_ftype disassemble;
95 /* If you add a case to this table, also add it to the
96 ARCH_all definition right above this function. */
99 /* As far as I know we only handle big-endian 29k objects. */
100 disassemble = print_insn_big_a29k;
105 disassemble = print_insn_alpha;
111 disassemble = arc_get_disassembler (abfd);
117 if (bfd_big_endian (abfd))
118 disassemble = print_insn_big_arm;
120 disassemble = print_insn_little_arm;
125 disassemble = print_insn_avr;
130 disassemble = cris_get_disassembler (abfd);
135 disassemble = print_insn_crx;
140 disassemble = print_insn_d10v;
145 disassemble = print_insn_d30v;
150 /* As far as I know we only handle big-endian DLX objects. */
151 disassemble = print_insn_dlx;
156 if (bfd_get_mach (abfd) == bfd_mach_h8300h
157 || bfd_get_mach (abfd) == bfd_mach_h8300hn)
158 disassemble = print_insn_h8300h;
159 else if (bfd_get_mach (abfd) == bfd_mach_h8300s
160 || bfd_get_mach (abfd) == bfd_mach_h8300sn
161 || bfd_get_mach (abfd) == bfd_mach_h8300sx
162 || bfd_get_mach (abfd) == bfd_mach_h8300sxn)
163 disassemble = print_insn_h8300s;
165 disassemble = print_insn_h8300;
170 disassemble = print_insn_h8500;
175 disassemble = print_insn_hppa;
180 disassemble = print_insn_i370;
185 disassemble = print_insn_i386;
190 disassemble = print_insn_i860;
195 disassemble = print_insn_i960;
200 disassemble = print_insn_ia64;
205 disassemble = print_insn_ip2k;
210 disassemble = print_insn_fr30;
215 disassemble = print_insn_m32r;
218 #if defined(ARCH_m68hc11) || defined(ARCH_m68hc12)
219 case bfd_arch_m68hc11:
220 disassemble = print_insn_m68hc11;
222 case bfd_arch_m68hc12:
223 disassemble = print_insn_m68hc12;
228 disassemble = print_insn_m68k;
233 disassemble = print_insn_m88k;
238 disassemble = print_insn_maxq_little;
243 disassemble = print_insn_ms1;
247 case bfd_arch_msp430:
248 disassemble = print_insn_msp430;
253 disassemble = print_insn_ns32k;
258 disassemble = print_insn_mcore;
263 if (bfd_big_endian (abfd))
264 disassemble = print_insn_big_mips;
266 disassemble = print_insn_little_mips;
271 disassemble = print_insn_mmix;
275 case bfd_arch_mn10200:
276 disassemble = print_insn_mn10200;
280 case bfd_arch_mn10300:
281 disassemble = print_insn_mn10300;
285 case bfd_arch_openrisc:
286 disassemble = print_insn_openrisc;
291 if (bfd_big_endian (abfd))
292 disassemble = print_insn_big_or32;
294 disassemble = print_insn_little_or32;
299 disassemble = print_insn_pdp11;
304 disassemble = print_insn_pj;
308 case bfd_arch_powerpc:
309 if (bfd_big_endian (abfd))
310 disassemble = print_insn_big_powerpc;
312 disassemble = print_insn_little_powerpc;
316 case bfd_arch_rs6000:
317 if (bfd_get_mach (abfd) == bfd_mach_ppc_620)
318 disassemble = print_insn_big_powerpc;
320 disassemble = print_insn_rs6000;
325 disassemble = print_insn_s390;
330 disassemble = print_insn_sh;
335 disassemble = print_insn_sparc;
340 disassemble = print_insn_tic30;
345 disassemble = print_insn_tic4x;
349 case bfd_arch_tic54x:
350 disassemble = print_insn_tic54x;
355 disassemble = print_insn_tic80;
360 disassemble = print_insn_v850;
365 disassemble = print_insn_w65;
368 #ifdef ARCH_xstormy16
369 case bfd_arch_xstormy16:
370 disassemble = print_insn_xstormy16;
374 case bfd_arch_xtensa:
375 disassemble = print_insn_xtensa;
380 if (bfd_get_mach(abfd) == bfd_mach_z8001)
381 disassemble = print_insn_z8001;
383 disassemble = print_insn_z8002;
388 disassemble = print_insn_vax;
393 disassemble = print_insn_frv;
397 case bfd_arch_iq2000:
398 disassemble = print_insn_iq2000;
403 disassemble = print_insn_m32c;
413 disassembler_usage (stream)
414 FILE * stream ATTRIBUTE_UNUSED;
417 print_arm_disassembler_options (stream);
420 print_mips_disassembler_options (stream);
423 print_ppc_disassembler_options (stream);
430 disassemble_init_for_target (struct disassemble_info * info)
439 info->symbol_is_valid = arm_symbol_is_valid;
444 info->skip_zeroes = 16;
449 info->skip_zeroes = 32;
453 info->endian = BFD_ENDIAN_BIG;
454 if (info->mach == bfd_mach_m16c)
455 info->insn_sets = ISA_M16C;
457 info->insn_sets = ISA_M32C;