1 /* Disassembler interface for targets using CGEN. -*- C -*-
2 CGEN: Cpu tools GENerator
4 THIS FILE IS MACHINE GENERATED WITH CGEN.
5 - the resultant file is machine generated, cgen-dis.in isn't
7 Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
8 Free Software Foundation, Inc.
10 This file is part of the GNU Binutils and GDB, the GNU debugger.
12 This program is free software; you can redistribute it and/or modify
13 it under the terms of the GNU General Public License as published by
14 the Free Software Foundation; either version 2, or (at your option)
17 This program is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License for more details.
22 You should have received a copy of the GNU General Public License
23 along with this program; if not, write to the Free Software Foundation, Inc.,
24 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
26 /* ??? Eventually more and more of this stuff can go to cpu-independent files.
35 #include "libiberty.h"
36 #include "ip2k-desc.h"
40 /* Default text to print if an instruction isn't recognized. */
41 #define UNKNOWN_INSN_MSG _("*unknown*")
43 static void print_normal
44 (CGEN_CPU_DESC
, void *, long, unsigned int, bfd_vma
, int);
45 static void print_address
46 (CGEN_CPU_DESC
, void *, bfd_vma
, unsigned int, bfd_vma
, int);
47 static void print_keyword
48 (CGEN_CPU_DESC
, void *, CGEN_KEYWORD
*, long, unsigned int);
49 static void print_insn_normal
50 (CGEN_CPU_DESC
, void *, const CGEN_INSN
*, CGEN_FIELDS
*, bfd_vma
, int);
52 (CGEN_CPU_DESC
, bfd_vma
, disassemble_info
*, char *, unsigned);
53 static int default_print_insn
54 (CGEN_CPU_DESC
, bfd_vma
, disassemble_info
*);
56 (CGEN_CPU_DESC
, bfd_vma
, disassemble_info
*, char *, int, CGEN_EXTRACT_INFO
*,
59 /* -- disassembler routines inserted here */
63 #define PRINT_FUNC_DECL(name) \
64 static void name PARAMS ((CGEN_CPU_DESC, PTR, long, unsigned int, bfd_vma, int))
66 PRINT_FUNC_DECL (print_fr
);
67 PRINT_FUNC_DECL (print_dollarhex
);
68 PRINT_FUNC_DECL (print_dollarhex8
);
69 PRINT_FUNC_DECL (print_dollarhex16
);
70 PRINT_FUNC_DECL (print_dollarhex_addr16h
);
71 PRINT_FUNC_DECL (print_dollarhex_addr16l
);
72 PRINT_FUNC_DECL (print_dollarhex_p
);
73 PRINT_FUNC_DECL (print_dollarhex_cj
);
74 PRINT_FUNC_DECL (print_decimal
);
77 print_fr (cd
, dis_info
, value
, attrs
, pc
, length
)
78 CGEN_CPU_DESC cd ATTRIBUTE_UNUSED
;
81 unsigned int attrs ATTRIBUTE_UNUSED
;
82 bfd_vma pc ATTRIBUTE_UNUSED
;
83 int length ATTRIBUTE_UNUSED
;
85 disassemble_info
*info
= (disassemble_info
*) dis_info
;
86 const CGEN_KEYWORD_ENTRY
*ke
;
87 extern CGEN_KEYWORD ip2k_cgen_opval_register_names
;
91 if ( value
== 0 ) /* This is (IP) */
93 (*info
->fprintf_func
) (info
->stream
, "%s", "(IP)");
97 offsettest
= value
>> 7;
98 offsetvalue
= value
& 0x7F;
100 /* Check to see if first two bits are 10 -> (DP) */
101 if ( offsettest
== 2 )
103 if ( offsetvalue
== 0 )
104 (*info
->fprintf_func
) (info
->stream
, "%s","(DP)");
106 (*info
->fprintf_func
) (info
->stream
, "$%x%s",offsetvalue
, "(DP)");
110 /* Check to see if first two bits are 11 -> (SP) */
111 if ( offsettest
== 3 )
113 if ( offsetvalue
== 0 )
114 (*info
->fprintf_func
) (info
->stream
, "%s", "(SP)");
116 (*info
->fprintf_func
) (info
->stream
, "$%x%s", offsetvalue
,"(SP)");
120 /* Attempt to print as a register keyword. */
121 ke
= cgen_keyword_lookup_value (& ip2k_cgen_opval_register_names
, value
);
124 (*info
->fprintf_func
) (info
->stream
, "%s", ke
->name
);
128 /* Print as an address literal. */
129 (*info
->fprintf_func
) (info
->stream
, "$%02x", value
);
133 print_dollarhex (cd
, dis_info
, value
, attrs
, pc
, length
)
134 CGEN_CPU_DESC cd ATTRIBUTE_UNUSED
;
137 unsigned int attrs ATTRIBUTE_UNUSED
;
138 bfd_vma pc ATTRIBUTE_UNUSED
;
139 int length ATTRIBUTE_UNUSED
;
141 disassemble_info
*info
= (disassemble_info
*) dis_info
;
143 (*info
->fprintf_func
) (info
->stream
, "$%x", value
);
147 print_dollarhex8 (cd
, dis_info
, value
, attrs
, pc
, length
)
148 CGEN_CPU_DESC cd ATTRIBUTE_UNUSED
;
151 unsigned int attrs ATTRIBUTE_UNUSED
;
152 bfd_vma pc ATTRIBUTE_UNUSED
;
153 int length ATTRIBUTE_UNUSED
;
155 disassemble_info
*info
= (disassemble_info
*) dis_info
;
157 (*info
->fprintf_func
) (info
->stream
, "$%02x", value
);
161 print_dollarhex16 (cd
, dis_info
, value
, attrs
, pc
, length
)
162 CGEN_CPU_DESC cd ATTRIBUTE_UNUSED
;
165 unsigned int attrs ATTRIBUTE_UNUSED
;
166 bfd_vma pc ATTRIBUTE_UNUSED
;
167 int length ATTRIBUTE_UNUSED
;
169 disassemble_info
*info
= (disassemble_info
*) dis_info
;
171 (*info
->fprintf_func
) (info
->stream
, "$%04x", value
);
175 print_dollarhex_addr16h (cd
, dis_info
, value
, attrs
, pc
, length
)
176 CGEN_CPU_DESC cd ATTRIBUTE_UNUSED
;
179 unsigned int attrs ATTRIBUTE_UNUSED
;
180 bfd_vma pc ATTRIBUTE_UNUSED
;
181 int length ATTRIBUTE_UNUSED
;
183 disassemble_info
*info
= (disassemble_info
*) dis_info
;
185 /* This is a loadh instruction. Shift the value to the left */
186 /* by 8 bits so that disassembled code will reassemble properly. */
187 value
= ((value
<< 8) & 0xFF00);
189 (*info
->fprintf_func
) (info
->stream
, "$%04x", value
);
193 print_dollarhex_addr16l (cd
, dis_info
, value
, attrs
, pc
, length
)
194 CGEN_CPU_DESC cd ATTRIBUTE_UNUSED
;
197 unsigned int attrs ATTRIBUTE_UNUSED
;
198 bfd_vma pc ATTRIBUTE_UNUSED
;
199 int length ATTRIBUTE_UNUSED
;
201 disassemble_info
*info
= (disassemble_info
*) dis_info
;
203 (*info
->fprintf_func
) (info
->stream
, "$%04x", value
);
207 print_dollarhex_p (cd
, dis_info
, value
, attrs
, pc
, length
)
208 CGEN_CPU_DESC cd ATTRIBUTE_UNUSED
;
211 unsigned int attrs ATTRIBUTE_UNUSED
;
212 bfd_vma pc ATTRIBUTE_UNUSED
;
213 int length ATTRIBUTE_UNUSED
;
215 disassemble_info
*info
= (disassemble_info
*) dis_info
;
217 value
= ((value
<< 14) & 0x1C000);
218 ;value
= (value
& 0x1FFFF);
219 (*info
->fprintf_func
) (info
->stream
, "$%05x", value
);
223 print_dollarhex_cj (cd
, dis_info
, value
, attrs
, pc
, length
)
224 CGEN_CPU_DESC cd ATTRIBUTE_UNUSED
;
227 unsigned int attrs ATTRIBUTE_UNUSED
;
228 bfd_vma pc ATTRIBUTE_UNUSED
;
229 int length ATTRIBUTE_UNUSED
;
231 disassemble_info
*info
= (disassemble_info
*) dis_info
;
233 value
= ((value
<< 1) & 0x1FFFF);
234 (*info
->fprintf_func
) (info
->stream
, "$%05x", value
);
239 print_decimal (cd
, dis_info
, value
, attrs
, pc
, length
)
240 CGEN_CPU_DESC cd ATTRIBUTE_UNUSED
;
243 unsigned int attrs ATTRIBUTE_UNUSED
;
244 bfd_vma pc ATTRIBUTE_UNUSED
;
245 int length ATTRIBUTE_UNUSED
;
247 disassemble_info
*info
= (disassemble_info
*) dis_info
;
249 (*info
->fprintf_func
) (info
->stream
, "%d", value
);
256 void ip2k_cgen_print_operand
257 PARAMS ((CGEN_CPU_DESC
, int, PTR
, CGEN_FIELDS
*,
258 void const *, bfd_vma
, int));
260 /* Main entry point for printing operands.
261 XINFO is a `void *' and not a `disassemble_info *' to not put a requirement
262 of dis-asm.h on cgen.h.
264 This function is basically just a big switch statement. Earlier versions
265 used tables to look up the function to use, but
266 - if the table contains both assembler and disassembler functions then
267 the disassembler contains much of the assembler and vice-versa,
268 - there's a lot of inlining possibilities as things grow,
269 - using a switch statement avoids the function call overhead.
271 This function could be moved into `print_insn_normal', but keeping it
272 separate makes clear the interface between `print_insn_normal' and each of
276 ip2k_cgen_print_operand (cd
, opindex
, xinfo
, fields
, attrs
, pc
, length
)
281 void const *attrs ATTRIBUTE_UNUSED
;
285 disassemble_info
*info
= (disassemble_info
*) xinfo
;
289 case IP2K_OPERAND_ADDR16CJP
:
290 print_dollarhex_cj (cd
, info
, fields
->f_addr16cjp
, 0|(1<<CGEN_OPERAND_ABS_ADDR
), pc
, length
);
292 case IP2K_OPERAND_ADDR16H
:
293 print_dollarhex_addr16h (cd
, info
, fields
->f_imm8
, 0, pc
, length
);
295 case IP2K_OPERAND_ADDR16L
:
296 print_dollarhex_addr16l (cd
, info
, fields
->f_imm8
, 0, pc
, length
);
298 case IP2K_OPERAND_ADDR16P
:
299 print_dollarhex_p (cd
, info
, fields
->f_page3
, 0, pc
, length
);
301 case IP2K_OPERAND_BITNO
:
302 print_decimal (cd
, info
, fields
->f_bitno
, 0, pc
, length
);
304 case IP2K_OPERAND_CBIT
:
305 print_normal (cd
, info
, 0, 0, pc
, length
);
307 case IP2K_OPERAND_DCBIT
:
308 print_normal (cd
, info
, 0, 0, pc
, length
);
310 case IP2K_OPERAND_FR
:
311 print_fr (cd
, info
, fields
->f_reg
, 0|(1<<CGEN_OPERAND_ABS_ADDR
), pc
, length
);
313 case IP2K_OPERAND_LIT8
:
314 print_dollarhex8 (cd
, info
, fields
->f_imm8
, 0|(1<<CGEN_OPERAND_SIGNED
), pc
, length
);
316 case IP2K_OPERAND_PABITS
:
317 print_normal (cd
, info
, 0, 0, pc
, length
);
319 case IP2K_OPERAND_RETI3
:
320 print_dollarhex (cd
, info
, fields
->f_reti3
, 0, pc
, length
);
322 case IP2K_OPERAND_ZBIT
:
323 print_normal (cd
, info
, 0, 0, pc
, length
);
327 /* xgettext:c-format */
328 fprintf (stderr
, _("Unrecognized field %d while printing insn.\n"),
334 cgen_print_fn
* const ip2k_cgen_print_handlers
[] =
341 ip2k_cgen_init_dis (cd
)
344 ip2k_cgen_init_opcode_table (cd
);
345 ip2k_cgen_init_ibld_table (cd
);
346 cd
->print_handlers
= & ip2k_cgen_print_handlers
[0];
347 cd
->print_operand
= ip2k_cgen_print_operand
;
351 /* Default print handler. */
354 print_normal (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED
,
358 bfd_vma pc ATTRIBUTE_UNUSED
,
359 int length ATTRIBUTE_UNUSED
)
361 disassemble_info
*info
= (disassemble_info
*) dis_info
;
363 #ifdef CGEN_PRINT_NORMAL
364 CGEN_PRINT_NORMAL (cd
, info
, value
, attrs
, pc
, length
);
367 /* Print the operand as directed by the attributes. */
368 if (CGEN_BOOL_ATTR (attrs
, CGEN_OPERAND_SEM_ONLY
))
369 ; /* nothing to do */
370 else if (CGEN_BOOL_ATTR (attrs
, CGEN_OPERAND_SIGNED
))
371 (*info
->fprintf_func
) (info
->stream
, "%ld", value
);
373 (*info
->fprintf_func
) (info
->stream
, "0x%lx", value
);
376 /* Default address handler. */
379 print_address (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED
,
383 bfd_vma pc ATTRIBUTE_UNUSED
,
384 int length ATTRIBUTE_UNUSED
)
386 disassemble_info
*info
= (disassemble_info
*) dis_info
;
388 #ifdef CGEN_PRINT_ADDRESS
389 CGEN_PRINT_ADDRESS (cd
, info
, value
, attrs
, pc
, length
);
392 /* Print the operand as directed by the attributes. */
393 if (CGEN_BOOL_ATTR (attrs
, CGEN_OPERAND_SEM_ONLY
))
394 ; /* nothing to do */
395 else if (CGEN_BOOL_ATTR (attrs
, CGEN_OPERAND_PCREL_ADDR
))
396 (*info
->print_address_func
) (value
, info
);
397 else if (CGEN_BOOL_ATTR (attrs
, CGEN_OPERAND_ABS_ADDR
))
398 (*info
->print_address_func
) (value
, info
);
399 else if (CGEN_BOOL_ATTR (attrs
, CGEN_OPERAND_SIGNED
))
400 (*info
->fprintf_func
) (info
->stream
, "%ld", (long) value
);
402 (*info
->fprintf_func
) (info
->stream
, "0x%lx", (long) value
);
405 /* Keyword print handler. */
408 print_keyword (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED
,
410 CGEN_KEYWORD
*keyword_table
,
412 unsigned int attrs ATTRIBUTE_UNUSED
)
414 disassemble_info
*info
= (disassemble_info
*) dis_info
;
415 const CGEN_KEYWORD_ENTRY
*ke
;
417 ke
= cgen_keyword_lookup_value (keyword_table
, value
);
419 (*info
->fprintf_func
) (info
->stream
, "%s", ke
->name
);
421 (*info
->fprintf_func
) (info
->stream
, "???");
424 /* Default insn printer.
426 DIS_INFO is defined as `void *' so the disassembler needn't know anything
427 about disassemble_info. */
430 print_insn_normal (CGEN_CPU_DESC cd
,
432 const CGEN_INSN
*insn
,
437 const CGEN_SYNTAX
*syntax
= CGEN_INSN_SYNTAX (insn
);
438 disassemble_info
*info
= (disassemble_info
*) dis_info
;
439 const CGEN_SYNTAX_CHAR_TYPE
*syn
;
441 CGEN_INIT_PRINT (cd
);
443 for (syn
= CGEN_SYNTAX_STRING (syntax
); *syn
; ++syn
)
445 if (CGEN_SYNTAX_MNEMONIC_P (*syn
))
447 (*info
->fprintf_func
) (info
->stream
, "%s", CGEN_INSN_MNEMONIC (insn
));
450 if (CGEN_SYNTAX_CHAR_P (*syn
))
452 (*info
->fprintf_func
) (info
->stream
, "%c", CGEN_SYNTAX_CHAR (*syn
));
456 /* We have an operand. */
457 ip2k_cgen_print_operand (cd
, CGEN_SYNTAX_FIELD (*syn
), info
,
458 fields
, CGEN_INSN_ATTRS (insn
), pc
, length
);
462 /* Subroutine of print_insn. Reads an insn into the given buffers and updates
464 Returns 0 if all is well, non-zero otherwise. */
467 read_insn (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED
,
469 disassemble_info
*info
,
472 CGEN_EXTRACT_INFO
*ex_info
,
473 unsigned long *insn_value
)
475 int status
= (*info
->read_memory_func
) (pc
, buf
, buflen
, info
);
478 (*info
->memory_error_func
) (status
, pc
, info
);
482 ex_info
->dis_info
= info
;
483 ex_info
->valid
= (1 << buflen
) - 1;
484 ex_info
->insn_bytes
= buf
;
486 *insn_value
= bfd_get_bits (buf
, buflen
* 8, info
->endian
== BFD_ENDIAN_BIG
);
490 /* Utility to print an insn.
491 BUF is the base part of the insn, target byte order, BUFLEN bytes long.
492 The result is the size of the insn in bytes or zero for an unknown insn
493 or -1 if an error occurs fetching data (memory_error_func will have
497 print_insn (CGEN_CPU_DESC cd
,
499 disassemble_info
*info
,
503 CGEN_INSN_INT insn_value
;
504 const CGEN_INSN_LIST
*insn_list
;
505 CGEN_EXTRACT_INFO ex_info
;
508 /* Extract base part of instruction, just in case CGEN_DIS_* uses it. */
509 basesize
= cd
->base_insn_bitsize
< buflen
* 8 ?
510 cd
->base_insn_bitsize
: buflen
* 8;
511 insn_value
= cgen_get_insn_value (cd
, buf
, basesize
);
514 /* Fill in ex_info fields like read_insn would. Don't actually call
515 read_insn, since the incoming buffer is already read (and possibly
516 modified a la m32r). */
517 ex_info
.valid
= (1 << buflen
) - 1;
518 ex_info
.dis_info
= info
;
519 ex_info
.insn_bytes
= buf
;
521 /* The instructions are stored in hash lists.
522 Pick the first one and keep trying until we find the right one. */
524 insn_list
= CGEN_DIS_LOOKUP_INSN (cd
, buf
, insn_value
);
525 while (insn_list
!= NULL
)
527 const CGEN_INSN
*insn
= insn_list
->insn
;
530 unsigned long insn_value_cropped
;
532 #ifdef CGEN_VALIDATE_INSN_SUPPORTED
533 /* Not needed as insn shouldn't be in hash lists if not supported. */
534 /* Supported by this cpu? */
535 if (! ip2k_cgen_insn_supported (cd
, insn
))
537 insn_list
= CGEN_DIS_NEXT_INSN (insn_list
);
542 /* Basic bit mask must be correct. */
543 /* ??? May wish to allow target to defer this check until the extract
546 /* Base size may exceed this instruction's size. Extract the
547 relevant part from the buffer. */
548 if ((unsigned) (CGEN_INSN_BITSIZE (insn
) / 8) < buflen
&&
549 (unsigned) (CGEN_INSN_BITSIZE (insn
) / 8) <= sizeof (unsigned long))
550 insn_value_cropped
= bfd_get_bits (buf
, CGEN_INSN_BITSIZE (insn
),
551 info
->endian
== BFD_ENDIAN_BIG
);
553 insn_value_cropped
= insn_value
;
555 if ((insn_value_cropped
& CGEN_INSN_BASE_MASK (insn
))
556 == CGEN_INSN_BASE_VALUE (insn
))
558 /* Printing is handled in two passes. The first pass parses the
559 machine insn and extracts the fields. The second pass prints
562 /* Make sure the entire insn is loaded into insn_value, if it
564 if (((unsigned) CGEN_INSN_BITSIZE (insn
) > cd
->base_insn_bitsize
) &&
565 (unsigned) (CGEN_INSN_BITSIZE (insn
) / 8) <= sizeof (unsigned long))
567 unsigned long full_insn_value
;
568 int rc
= read_insn (cd
, pc
, info
, buf
,
569 CGEN_INSN_BITSIZE (insn
) / 8,
570 & ex_info
, & full_insn_value
);
573 length
= CGEN_EXTRACT_FN (cd
, insn
)
574 (cd
, insn
, &ex_info
, full_insn_value
, &fields
, pc
);
577 length
= CGEN_EXTRACT_FN (cd
, insn
)
578 (cd
, insn
, &ex_info
, insn_value_cropped
, &fields
, pc
);
580 /* length < 0 -> error */
585 CGEN_PRINT_FN (cd
, insn
) (cd
, info
, insn
, &fields
, pc
, length
);
586 /* length is in bits, result is in bytes */
591 insn_list
= CGEN_DIS_NEXT_INSN (insn_list
);
597 /* Default value for CGEN_PRINT_INSN.
598 The result is the size of the insn in bytes or zero for an unknown insn
599 or -1 if an error occured fetching bytes. */
601 #ifndef CGEN_PRINT_INSN
602 #define CGEN_PRINT_INSN default_print_insn
606 default_print_insn (CGEN_CPU_DESC cd
, bfd_vma pc
, disassemble_info
*info
)
608 char buf
[CGEN_MAX_INSN_SIZE
];
612 /* Attempt to read the base part of the insn. */
613 buflen
= cd
->base_insn_bitsize
/ 8;
614 status
= (*info
->read_memory_func
) (pc
, buf
, buflen
, info
);
616 /* Try again with the minimum part, if min < base. */
617 if (status
!= 0 && (cd
->min_insn_bitsize
< cd
->base_insn_bitsize
))
619 buflen
= cd
->min_insn_bitsize
/ 8;
620 status
= (*info
->read_memory_func
) (pc
, buf
, buflen
, info
);
625 (*info
->memory_error_func
) (status
, pc
, info
);
629 return print_insn (cd
, pc
, info
, buf
, buflen
);
633 Print one instruction from PC on INFO->STREAM.
634 Return the size of the instruction (in bytes). */
636 typedef struct cpu_desc_list
{
637 struct cpu_desc_list
*next
;
645 print_insn_ip2k (bfd_vma pc
, disassemble_info
*info
)
647 static cpu_desc_list
*cd_list
= 0;
648 cpu_desc_list
*cl
= 0;
649 static CGEN_CPU_DESC cd
= 0;
651 static int prev_mach
;
652 static int prev_endian
;
655 int endian
= (info
->endian
== BFD_ENDIAN_BIG
657 : CGEN_ENDIAN_LITTLE
);
658 enum bfd_architecture arch
;
660 /* ??? gdb will set mach but leave the architecture as "unknown" */
661 #ifndef CGEN_BFD_ARCH
662 #define CGEN_BFD_ARCH bfd_arch_ip2k
665 if (arch
== bfd_arch_unknown
)
666 arch
= CGEN_BFD_ARCH
;
668 /* There's no standard way to compute the machine or isa number
669 so we leave it to the target. */
670 #ifdef CGEN_COMPUTE_MACH
671 mach
= CGEN_COMPUTE_MACH (info
);
676 #ifdef CGEN_COMPUTE_ISA
677 isa
= CGEN_COMPUTE_ISA (info
);
679 isa
= info
->insn_sets
;
682 /* If we've switched cpu's, try to find a handle we've used before */
686 || endian
!= prev_endian
))
689 for (cl
= cd_list
; cl
; cl
= cl
->next
)
691 if (cl
->isa
== isa
&&
693 cl
->endian
== endian
)
701 /* If we haven't initialized yet, initialize the opcode table. */
704 const bfd_arch_info_type
*arch_type
= bfd_lookup_arch (arch
, mach
);
705 const char *mach_name
;
709 mach_name
= arch_type
->printable_name
;
713 prev_endian
= endian
;
714 cd
= ip2k_cgen_cpu_open (CGEN_CPU_OPEN_ISAS
, prev_isa
,
715 CGEN_CPU_OPEN_BFDMACH
, mach_name
,
716 CGEN_CPU_OPEN_ENDIAN
, prev_endian
,
721 /* save this away for future reference */
722 cl
= xmalloc (sizeof (struct cpu_desc_list
));
730 ip2k_cgen_init_dis (cd
);
733 /* We try to have as much common code as possible.
734 But at this point some targets need to take over. */
735 /* ??? Some targets may need a hook elsewhere. Try to avoid this,
736 but if not possible try to move this hook elsewhere rather than
738 length
= CGEN_PRINT_INSN (cd
, pc
, info
);
744 (*info
->fprintf_func
) (info
->stream
, UNKNOWN_INSN_MSG
);
745 return cd
->default_insn_bitsize
/ 8;