From: Michael Eager Date: Fri, 25 Sep 2009 19:59:51 +0000 (+0000) Subject: 2009-09-25 Michael Eager X-Git-Tag: sid-snapshot-20091001~64 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fe2d172ccbde84427ab164b885a0df6c9e21f9a0;p=external%2Fbinutils.git 2009-09-25 Michael Eager * microblaze-dis.c (get_insn_microblaze, microblaze_get_target_address, microblaze_decode_insn): Add declarations. (get_delay_slots_microblaze): Remove. --- diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 7a786ff..ae3551e 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,9 @@ +2009-09-25 Michael Eager + + * microblaze-dis.c (get_insn_microblaze, microblaze_get_target_address, + microblaze_decode_insn): Add declarations. + (get_delay_slots_microblaze): Remove. + 2009-09-25 Martin Thuresson Update soruces to make arc and arm targets compile cleanly with diff --git a/opcodes/microblaze-dis.c b/opcodes/microblaze-dis.c index 178415e..3c4eef9 100644 --- a/opcodes/microblaze-dis.c +++ b/opcodes/microblaze-dis.c @@ -34,6 +34,13 @@ #define get_int_field_imm(instr) ((instr & IMM_MASK) >> IMM_LOW) #define get_int_field_r1(instr) ((instr & RA_MASK) >> RA_LOW) + +enum microblaze_instr get_insn_microblaze (long, bfd_boolean *, + enum microblaze_instr_type *, short *); +unsigned long microblaze_get_target_address (long, bfd_boolean, int, long, long, + long, bfd_boolean *, bfd_boolean *); +enum microblaze_instr microblaze_decode_insn (long insn, int *rd, int *ra, int *rb, int *imm); + static char * get_field (long instr, long mask, unsigned short low) { @@ -388,8 +395,8 @@ print_insn_microblaze (bfd_vma memaddr, struct disassemble_info * info) /* Say how many bytes we consumed. */ return 4; } -#if 0 -static enum microblaze_instr + +enum microblaze_instr get_insn_microblaze (long inst, bfd_boolean *isunsignedimm, enum microblaze_instr_type *insn_type, @@ -414,21 +421,6 @@ get_insn_microblaze (long inst, } } -short -get_delay_slots_microblaze (long inst) -{ - bfd_boolean isunsignedimm; - enum microblaze_instr_type insn_type; - enum microblaze_instr op; - short delay_slots; - - op = get_insn_microblaze (inst, &isunsignedimm, &insn_type, &delay_slots); - if (op == invalid_inst) - return 0; - else - return delay_slots; -} - enum microblaze_instr microblaze_decode_insn (long insn, int *rd, int *ra, int *rb, int *imm) { @@ -524,4 +516,3 @@ microblaze_get_target_address (long inst, bfd_boolean immfound, int immval, *targetvalid = FALSE; return targetaddr; } -#endif