Ignore:
Timestamp:
Aug 16, 2003, 6:59:22 PM (22 years ago)
Author:
bird
Message:

binutils v2.14 - offical sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/binutils/opcodes/cris-dis.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r608 r609  
    11/* Disassembler code for CRIS.
    2    Copyright 2000 Free Software Foundation, Inc.
     2   Copyright 2000, 2001, 2002 Free Software Foundation, Inc.
    33   Contributed by Axis Communications AB, Lund, Sweden.
    44   Written by Hans-Peter Nilsson.
     
    88This program is free software; you can redistribute it and/or modify it under
    99the terms of the GNU General Public License as published by the Free
    10 Software Foundation; either version 2 of the License, or (at your option)
     10Software Foundation; either version 2, or (at your option)
    1111any later version.
    1212
     
    7979static long last_immediate = 0;
    8080
    81 static int number_of_bits PARAMS ((unsigned int));
    82 static char *format_hex PARAMS ((unsigned long, char *));
    83 static char *format_dec PARAMS ((long, char *, int));
    84 static char *format_reg PARAMS ((int, char *, boolean));
    85 static int cris_constraint PARAMS ((const char *, unsigned int,
    86                                     unsigned int));
    87 static unsigned bytes_to_skip PARAMS ((unsigned int,
    88                                        const struct cris_opcode *));
    89 static char *print_flags PARAMS ((unsigned int, char *));
     81static int number_of_bits
     82  PARAMS ((unsigned int));
     83static char *format_hex
     84  PARAMS ((unsigned long, char *));
     85static char *format_dec
     86  PARAMS ((long, char *, int));
     87static char *format_reg
     88  PARAMS ((int, char *, bfd_boolean));
     89static int cris_constraint
     90  PARAMS ((const char *, unsigned int, unsigned int));
     91static unsigned bytes_to_skip
     92  PARAMS ((unsigned int, const struct cris_opcode *));
     93static char *print_flags
     94  PARAMS ((unsigned int, char *));
    9095static void print_with_operands
    9196  PARAMS ((const struct cris_opcode *, unsigned int, unsigned char *,
    9297           bfd_vma, disassemble_info *, const struct cris_opcode *,
    93            unsigned int, unsigned char *, boolean));
    94 static const struct cris_spec_reg *spec_reg_info PARAMS ((unsigned int));
     98           unsigned int, unsigned char *, bfd_boolean));
     99static const struct cris_spec_reg *spec_reg_info
     100  PARAMS ((unsigned int));
    95101static int print_insn_cris_generic
    96   PARAMS ((bfd_vma, disassemble_info *, boolean));
     102  PARAMS ((bfd_vma, disassemble_info *, bfd_boolean));
    97103static int print_insn_cris_with_register_prefix
    98104  PARAMS ((bfd_vma, disassemble_info *));
    99105static int print_insn_cris_without_register_prefix
    100106  PARAMS ((bfd_vma, disassemble_info *));
     107static const struct cris_opcode *get_opcode_entry
     108  PARAMS ((unsigned int, unsigned int));
    101109
    102110/* Return the descriptor of a special register.
     
    126134  int bits;
    127135
    128   for (bits = 0; val != 0; val &= val-1)
     136  for (bits = 0; val != 0; val &= val - 1)
    129137    bits++;
    130138
     
    334342     int regno;
    335343     char *outbuffer_start;
    336      boolean with_reg_prefix;
     344     bfd_boolean with_reg_prefix;
    337345{
    338346  char *outbuffer = outbuffer_start;
     
    374382
    375383  const char *s;
    376   for (s  = cs; *s; s++)
     384  for (s = cs; *s; s++)
    377385    switch (*s)
    378386      {
     
    593601     unsigned int prefix_insn;
    594602     unsigned char *prefix_buffer;
    595      boolean with_reg_prefix;
     603     bfd_boolean with_reg_prefix;
    596604{
    597605  /* Get a buffer of somewhat reasonable size where we store
     
    11861194     bfd_vma memaddr;
    11871195     disassemble_info *info;
    1188      boolean with_reg_prefix;
     1196     bfd_boolean with_reg_prefix;
    11891197{
    11901198  int nbytes;
     
    11971205  unsigned char buffer[MAX_BYTES_PER_CRIS_INSN];
    11981206  unsigned char *bufp;
    1199   int status;
     1207  int status = 0;
    12001208  bfd_vma addr;
    12011209
     
    13691377     disassemble_info *info;
    13701378{
    1371   return print_insn_cris_generic (vma, info, true);
     1379  return print_insn_cris_generic (vma, info, TRUE);
    13721380}
    13731381
     
    13791387     disassemble_info *info;
    13801388{
    1381   return print_insn_cris_generic (vma, info, false);
     1389  return print_insn_cris_generic (vma, info, FALSE);
    13821390}
    13831391
Note: See TracChangeset for help on using the changeset viewer.