Changeset 609 for branches/GNU/src/binutils/opcodes/cris-dis.c
- Timestamp:
- Aug 16, 2003, 6:59:22 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/binutils/opcodes/cris-dis.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 1 1 /* Disassembler code for CRIS. 2 Copyright 2000 Free Software Foundation, Inc.2 Copyright 2000, 2001, 2002 Free Software Foundation, Inc. 3 3 Contributed by Axis Communications AB, Lund, Sweden. 4 4 Written by Hans-Peter Nilsson. … … 8 8 This program is free software; you can redistribute it and/or modify it under 9 9 the 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)10 Software Foundation; either version 2, or (at your option) 11 11 any later version. 12 12 … … 79 79 static long last_immediate = 0; 80 80 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 *)); 81 static int number_of_bits 82 PARAMS ((unsigned int)); 83 static char *format_hex 84 PARAMS ((unsigned long, char *)); 85 static char *format_dec 86 PARAMS ((long, char *, int)); 87 static char *format_reg 88 PARAMS ((int, char *, bfd_boolean)); 89 static int cris_constraint 90 PARAMS ((const char *, unsigned int, unsigned int)); 91 static unsigned bytes_to_skip 92 PARAMS ((unsigned int, const struct cris_opcode *)); 93 static char *print_flags 94 PARAMS ((unsigned int, char *)); 90 95 static void print_with_operands 91 96 PARAMS ((const struct cris_opcode *, unsigned int, unsigned char *, 92 97 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)); 99 static const struct cris_spec_reg *spec_reg_info 100 PARAMS ((unsigned int)); 95 101 static int print_insn_cris_generic 96 PARAMS ((bfd_vma, disassemble_info *, b oolean));102 PARAMS ((bfd_vma, disassemble_info *, bfd_boolean)); 97 103 static int print_insn_cris_with_register_prefix 98 104 PARAMS ((bfd_vma, disassemble_info *)); 99 105 static int print_insn_cris_without_register_prefix 100 106 PARAMS ((bfd_vma, disassemble_info *)); 107 static const struct cris_opcode *get_opcode_entry 108 PARAMS ((unsigned int, unsigned int)); 101 109 102 110 /* Return the descriptor of a special register. … … 126 134 int bits; 127 135 128 for (bits = 0; val != 0; val &= val -1)136 for (bits = 0; val != 0; val &= val - 1) 129 137 bits++; 130 138 … … 334 342 int regno; 335 343 char *outbuffer_start; 336 b oolean with_reg_prefix;344 bfd_boolean with_reg_prefix; 337 345 { 338 346 char *outbuffer = outbuffer_start; … … 374 382 375 383 const char *s; 376 for (s 384 for (s = cs; *s; s++) 377 385 switch (*s) 378 386 { … … 593 601 unsigned int prefix_insn; 594 602 unsigned char *prefix_buffer; 595 b oolean with_reg_prefix;603 bfd_boolean with_reg_prefix; 596 604 { 597 605 /* Get a buffer of somewhat reasonable size where we store … … 1186 1194 bfd_vma memaddr; 1187 1195 disassemble_info *info; 1188 b oolean with_reg_prefix;1196 bfd_boolean with_reg_prefix; 1189 1197 { 1190 1198 int nbytes; … … 1197 1205 unsigned char buffer[MAX_BYTES_PER_CRIS_INSN]; 1198 1206 unsigned char *bufp; 1199 int status ;1207 int status = 0; 1200 1208 bfd_vma addr; 1201 1209 … … 1369 1377 disassemble_info *info; 1370 1378 { 1371 return print_insn_cris_generic (vma, info, true);1379 return print_insn_cris_generic (vma, info, TRUE); 1372 1380 } 1373 1381 … … 1379 1387 disassemble_info *info; 1380 1388 { 1381 return print_insn_cris_generic (vma, info, false);1389 return print_insn_cris_generic (vma, info, FALSE); 1382 1390 } 1383 1391 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.