* mips-dis.c: Add missing prototypes.
* a29k-dis.c: Likewise. * arc-dis.c: Likewise. * ia64-opc.c: Likewise.
This commit is contained in:
parent
7fa108a4d5
commit
279a96ca39
@ -35,16 +35,16 @@
|
||||
#define dbg (0)
|
||||
#endif
|
||||
|
||||
#define BIT(word,n) ((word) & (1 << n))
|
||||
#define BIT(word,n) ((word) & (1 << n))
|
||||
#define BITS(word,s,e) (((word) << (31 - e)) >> (s + (31 - e)))
|
||||
#define OPCODE(word) (BITS ((word), 27, 31))
|
||||
#define FIELDA(word) (BITS ((word), 21, 26))
|
||||
#define FIELDB(word) (BITS ((word), 15, 20))
|
||||
#define FIELDC(word) (BITS ((word), 9, 14))
|
||||
#define OPCODE(word) (BITS ((word), 27, 31))
|
||||
#define FIELDA(word) (BITS ((word), 21, 26))
|
||||
#define FIELDB(word) (BITS ((word), 15, 20))
|
||||
#define FIELDC(word) (BITS ((word), 9, 14))
|
||||
|
||||
/* FIELD D is signed in all of its uses, so we make sure argument is
|
||||
treated as signed for bit shifting purposes: */
|
||||
#define FIELDD(word) (BITS (((signed int)word), 0, 8))
|
||||
#define FIELDD(word) (BITS (((signed int)word), 0, 8))
|
||||
|
||||
#define PUT_NEXT_WORD_IN(a) \
|
||||
do \
|
||||
@ -136,16 +136,31 @@
|
||||
(IS_REG (x) ? cb1"%r"ca1 : \
|
||||
usesAuxReg ? cb"%a"ca : \
|
||||
IS_SMALL (x) ? cb"%d"ca : cb"%h"ca))
|
||||
#define WRITE_FORMAT_RB() strcat (formatString, "]")
|
||||
#define WRITE_FORMAT_RB() strcat (formatString, "]")
|
||||
#define WRITE_COMMENT(str) (state->comm[state->commNum++] = (str))
|
||||
#define WRITE_NOP_COMMENT() if (!fieldAisReg && !flag) WRITE_COMMENT ("nop");
|
||||
#define WRITE_NOP_COMMENT() if (!fieldAisReg && !flag) WRITE_COMMENT ("nop");
|
||||
|
||||
#define NEXT_WORD(x) (offset += 4, state->words[x])
|
||||
#define NEXT_WORD(x) (offset += 4, state->words[x])
|
||||
|
||||
#define add_target(x) (state->targets[state->tcnt++] = (x))
|
||||
#define add_target(x) (state->targets[state->tcnt++] = (x))
|
||||
|
||||
static char comment_prefix[] = "\t; ";
|
||||
|
||||
static const char *core_reg_name PARAMS ((struct arcDisState *, int));
|
||||
static const char *aux_reg_name PARAMS ((struct arcDisState *, int));
|
||||
static const char *cond_code_name PARAMS ((struct arcDisState *, int));
|
||||
static const char *instruction_name
|
||||
PARAMS ((struct arcDisState *, int, int, int *));
|
||||
static void mwerror PARAMS ((struct arcDisState *, const char *));
|
||||
static const char *post_address PARAMS ((struct arcDisState *, int));
|
||||
static void write_comments_
|
||||
PARAMS ((struct arcDisState *, int, int, long int));
|
||||
static void write_instr_name_
|
||||
PARAMS ((struct arcDisState *, const char *, int, int, int, int, int, int));
|
||||
static int dsmOneArcInst PARAMS ((bfd_vma, struct arcDisState *));
|
||||
static const char *_coreRegName PARAMS ((void *, int));
|
||||
static int decodeInstr PARAMS ((bfd_vma, disassemble_info *));
|
||||
|
||||
static const char *
|
||||
core_reg_name (state, val)
|
||||
struct arcDisState * state;
|
||||
|
@ -25,6 +25,20 @@
|
||||
#include "ia64-asmtab.h"
|
||||
#include "ia64-asmtab.c"
|
||||
|
||||
static void get_opc_prefix PARAMS ((const char **, char *));
|
||||
static short int find_string_ent PARAMS ((const char *));
|
||||
static short int find_main_ent PARAMS ((short int));
|
||||
static short int find_completer PARAMS ((short int, short int, const char *));
|
||||
static ia64_insn apply_completer PARAMS ((ia64_insn, int));
|
||||
static int extract_op_bits PARAMS ((int, int, int));
|
||||
static int extract_op PARAMS ((int, int *, unsigned int *));
|
||||
static int opcode_verify PARAMS ((ia64_insn, int, enum ia64_insn_type));
|
||||
static int locate_opcode_ent PARAMS ((ia64_insn, enum ia64_insn_type));
|
||||
static struct ia64_opcode *make_ia64_opcode
|
||||
PARAMS ((ia64_insn, const char *, int, int));
|
||||
static struct ia64_opcode *ia64_find_matching_opcode
|
||||
PARAMS ((const char *, short int));
|
||||
|
||||
const struct ia64_templ_desc ia64_templ_desc[16] =
|
||||
{
|
||||
{ 0, { IA64_UNIT_M, IA64_UNIT_I, IA64_UNIT_I }, "MII" }, /* 0 */
|
||||
@ -646,7 +660,7 @@ ia64_find_matching_opcode (name, place)
|
||||
short completer = -1;
|
||||
|
||||
do {
|
||||
if (suffix[0] == '\0')
|
||||
if (suffix[0] == '\0')
|
||||
{
|
||||
completer = find_completer (place, completer, suffix);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user