aboutsummaryrefslogtreecommitdiff
path: root/opcodes/microblaze-dis.c
diff options
context:
space:
mode:
authorMichael Eager <eager@eagercon.com>2009-09-25 19:59:51 +0000
committerMichael Eager <eager@eagercon.com>2009-09-25 19:59:51 +0000
commitfe2d172ccbde84427ab164b885a0df6c9e21f9a0 (patch)
treebce3ee913088914da69880d070caabe91a693a8b /opcodes/microblaze-dis.c
parent30167e0a4a1ff0887f69450eeb990d4c3fc8f6ad (diff)
downloadgdb-fe2d172ccbde84427ab164b885a0df6c9e21f9a0.zip
gdb-fe2d172ccbde84427ab164b885a0df6c9e21f9a0.tar.gz
gdb-fe2d172ccbde84427ab164b885a0df6c9e21f9a0.tar.bz2
2009-09-25 Michael Eager <eager@eagercon.com>
* microblaze-dis.c (get_insn_microblaze, microblaze_get_target_address, microblaze_decode_insn): Add declarations. (get_delay_slots_microblaze): Remove.
Diffstat (limited to 'opcodes/microblaze-dis.c')
-rw-r--r--opcodes/microblaze-dis.c27
1 files changed, 9 insertions, 18 deletions
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