1 /* Select disassembly routine for specified architecture.
2 Copyright (C) 1994, 1995 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. */
24 /* start-sanitize-arc */
26 /* end-sanitize-arc */
28 /* start-sanitize-d10v */
30 /* end-sanitize-d10v */
52 enum bfd_architecture a
= bfd_get_arch (abfd
);
53 disassembler_ftype disassemble
;
57 /* If you add a case to this table, also add it to the
58 ARCH_all definition right above this function. */
61 /* As far as I know we only handle big-endian 29k objects. */
62 disassemble
= print_insn_big_a29k
;
67 disassemble
= print_insn_alpha
;
70 /* start-sanitize-arc */
74 disassemble
= arc_get_disassembler (bfd_get_mach (abfd
),
75 bfd_big_endian (abfd
));
79 /* end-sanitize-arc */
82 if (bfd_big_endian (abfd
))
83 disassemble
= print_insn_big_arm
;
85 disassemble
= print_insn_little_arm
;
88 /* start-sanitize-d10v */
91 disassemble
= print_insn_d10v
;
94 /* end-sanitize-d10v */
97 if (bfd_get_mach(abfd
) == bfd_mach_h8300h
)
98 disassemble
= print_insn_h8300h
;
99 else if (bfd_get_mach(abfd
) == bfd_mach_h8300s
)
100 disassemble
= print_insn_h8300s
;
102 disassemble
= print_insn_h8300
;
107 disassemble
= print_insn_h8500
;
112 disassemble
= print_insn_hppa
;
117 disassemble
= print_insn_i386
;
122 disassemble
= print_insn_i960
;
127 disassemble
= print_insn_m68k
;
132 disassemble
= print_insn_m88k
;
137 disassemble
= print_insn_ns32k
;
142 if (bfd_big_endian (abfd
))
143 disassemble
= print_insn_big_mips
;
145 disassemble
= print_insn_little_mips
;
149 case bfd_arch_powerpc
:
150 if (bfd_big_endian (abfd
))
151 disassemble
= print_insn_big_powerpc
;
153 disassemble
= print_insn_little_powerpc
;
157 case bfd_arch_rs6000
:
158 disassemble
= print_insn_rs6000
;
163 if (bfd_big_endian (abfd
))
164 disassemble
= print_insn_sh
;
166 disassemble
= print_insn_shl
;
171 disassemble
= print_insn_sparc
;
176 disassemble
= print_insn_w65
;
181 if (bfd_get_mach(abfd
) == bfd_mach_z8001
)
182 disassemble
= print_insn_z8001
;
184 disassemble
= print_insn_z8002
;