1 /* Select disassembly routine for specified architecture.
2 Copyright (C) 1994, 95, 96, 97, 98, 99, 2000
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. */
69 enum bfd_architecture a = bfd_get_arch (abfd);
70 disassembler_ftype disassemble;
74 /* If you add a case to this table, also add it to the
75 ARCH_all definition right above this function. */
78 /* As far as I know we only handle big-endian 29k objects. */
79 disassemble = print_insn_big_a29k;
84 disassemble = print_insn_alpha;
90 disassemble = arc_get_disassembler (bfd_get_mach (abfd),
91 bfd_big_endian (abfd));
97 if (bfd_big_endian (abfd))
98 disassemble = print_insn_big_arm;
100 disassemble = print_insn_little_arm;
105 disassemble = print_insn_avr;
110 disassemble = cris_get_disassembler (abfd);
115 disassemble = print_insn_d10v;
120 disassemble = print_insn_d30v;
125 if (bfd_get_mach(abfd) == bfd_mach_h8300h)
126 disassemble = print_insn_h8300h;
127 else if (bfd_get_mach(abfd) == bfd_mach_h8300s)
128 disassemble = print_insn_h8300s;
130 disassemble = print_insn_h8300;
135 disassemble = print_insn_h8500;
140 disassemble = print_insn_hppa;
145 disassemble = print_insn_i370;
150 if (bfd_get_mach (abfd) == bfd_mach_i386_i386_intel_syntax)
151 disassemble = print_insn_i386_intel;
153 disassemble = print_insn_i386_att;
158 disassemble = print_insn_i860;
163 disassemble = print_insn_i960;
168 disassemble = print_insn_ia64;
173 disassemble = print_insn_fr30;
178 disassemble = print_insn_m32r;
181 #if defined(ARCH_m68hc11) || defined(ARCH_m68hc12)
182 case bfd_arch_m68hc11:
183 disassemble = print_insn_m68hc11;
185 case bfd_arch_m68hc12:
186 disassemble = print_insn_m68hc12;
191 disassemble = print_insn_m68k;
196 disassemble = print_insn_m88k;
201 disassemble = print_insn_ns32k;
206 disassemble = print_insn_mcore;
211 if (bfd_big_endian (abfd))
212 disassemble = print_insn_big_mips;
214 disassemble = print_insn_little_mips;
218 case bfd_arch_mn10200:
219 disassemble = print_insn_mn10200;
223 case bfd_arch_mn10300:
224 disassemble = print_insn_mn10300;
229 disassemble = print_insn_pj;
233 case bfd_arch_powerpc:
234 if (bfd_big_endian (abfd))
235 disassemble = print_insn_big_powerpc;
237 disassemble = print_insn_little_powerpc;
241 case bfd_arch_rs6000:
242 if (bfd_get_mach (abfd) == bfd_mach_ppc_620)
243 disassemble = print_insn_big_powerpc;
245 disassemble = print_insn_rs6000;
250 if (bfd_big_endian (abfd))
251 disassemble = print_insn_sh;
253 disassemble = print_insn_shl;
258 disassemble = print_insn_sparc;
263 disassemble = print_insn_tic30;
267 case bfd_arch_tic54x:
268 disassemble = print_insn_tic54x;
273 disassemble = print_insn_tic80;
278 disassemble = print_insn_v850;
283 disassemble = print_insn_w65;
288 if (bfd_get_mach(abfd) == bfd_mach_z8001)
289 disassemble = print_insn_z8001;
291 disassemble = print_insn_z8002;
296 disassemble = print_insn_vax;
306 disassembler_usage (stream)
307 FILE * stream ATTRIBUTE_UNUSED;
310 print_arm_disassembler_options (stream);