1 /* Select disassembly routine for specified architecture.
2 Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
27 /* start-sanitize-d30v */
29 /* end-sanitize-d30v */
46 /* start-sanitize-tic80 */
48 /* end-sanitize-tic80 */
54 /* start-sanitize-sky */
55 #if defined (ARCH_dvp) && ! defined (ARCH_mips)
58 /* end-sanitize-sky */
64 enum bfd_architecture a
= bfd_get_arch (abfd
);
65 disassembler_ftype disassemble
;
69 /* If you add a case to this table, also add it to the
70 ARCH_all definition right above this function. */
73 /* As far as I know we only handle big-endian 29k objects. */
74 disassemble
= print_insn_big_a29k
;
79 disassemble
= print_insn_alpha
;
85 disassemble
= arc_get_disassembler (bfd_get_mach (abfd
),
86 bfd_big_endian (abfd
));
92 if (bfd_big_endian (abfd
))
93 disassemble
= print_insn_big_arm
;
95 disassemble
= print_insn_little_arm
;
100 disassemble
= print_insn_d10v
;
103 /* start-sanitize-d30v */
106 disassemble
= print_insn_d30v
;
109 /* end-sanitize-d30v */
112 if (bfd_get_mach(abfd
) == bfd_mach_h8300h
)
113 disassemble
= print_insn_h8300h
;
114 else if (bfd_get_mach(abfd
) == bfd_mach_h8300s
)
115 disassemble
= print_insn_h8300s
;
117 disassemble
= print_insn_h8300
;
122 disassemble
= print_insn_h8500
;
127 disassemble
= print_insn_hppa
;
132 disassemble
= print_insn_i386
;
137 disassemble
= print_insn_i960
;
142 disassemble
= print_insn_m32r
;
147 disassemble
= print_insn_m68k
;
152 disassemble
= print_insn_m88k
;
157 disassemble
= print_insn_ns32k
;
162 if (bfd_big_endian (abfd
))
163 disassemble
= print_insn_big_mips
;
165 disassemble
= print_insn_little_mips
;
169 case bfd_arch_mn10200
:
170 disassemble
= print_insn_mn10200
;
174 case bfd_arch_mn10300
:
175 disassemble
= print_insn_mn10300
;
179 case bfd_arch_powerpc
:
180 if (bfd_big_endian (abfd
))
181 disassemble
= print_insn_big_powerpc
;
183 disassemble
= print_insn_little_powerpc
;
187 case bfd_arch_rs6000
:
188 disassemble
= print_insn_rs6000
;
193 if (bfd_big_endian (abfd
))
194 disassemble
= print_insn_sh
;
196 disassemble
= print_insn_shl
;
201 disassemble
= print_insn_sparc
;
204 /* start-sanitize-tic80 */
207 disassemble
= print_insn_tic80
;
210 /* end-sanitize-tic80 */
213 disassemble
= print_insn_v850
;
218 disassemble
= print_insn_w65
;
223 if (bfd_get_mach(abfd
) == bfd_mach_z8001
)
224 disassemble
= print_insn_z8001
;
226 disassemble
= print_insn_z8002
;