X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=opcodes%2Fm10200-dis.c;h=ffbf78a76d9b030502542991ee84c484c970655c;hb=362c0c4d9cc9f320d1e85755404879a13ebed91a;hp=c52120f950f4684080b17a12432dbf5a69c2e316;hpb=b90efa5b79ac1524ec260f8eb89d1be37e0219a7;p=deliverable%2Fbinutils-gdb.git diff --git a/opcodes/m10200-dis.c b/opcodes/m10200-dis.c index c52120f950..ffbf78a76d 100644 --- a/opcodes/m10200-dis.c +++ b/opcodes/m10200-dis.c @@ -1,5 +1,5 @@ /* Disassemble MN10200 instructions. - Copyright (C) 1996-2015 Free Software Foundation, Inc. + Copyright (C) 1996-2016 Free Software Foundation, Inc. This file is part of the GNU opcodes library. @@ -20,7 +20,7 @@ #include "sysdep.h" #include -#include "opcode/mn10200.h" +#include "opcode/mn10200.h" #include "dis-asm.h" #include "opintl.h" @@ -54,7 +54,7 @@ disassemble (bfd_vma memaddr, mysize = 5; else abort (); - + if (op->format == FMT_2 || op->format == FMT_5) extra_shift = 8; else if (op->format == FMT_3 @@ -70,7 +70,7 @@ disassemble (bfd_vma memaddr, const unsigned char *opindex_ptr; unsigned int nocomma; int paren = 0; - + match = 1; (*info->fprintf_func) (info->stream, "%s\t", op->name); @@ -104,7 +104,7 @@ disassemble (bfd_vma memaddr, (*info->fprintf_func) (info->stream, ","); nocomma = 0; - + if ((operand->flags & MN10200_OPERAND_DREG) != 0) { value = ((insn >> (operand->shift + extra_shift)) @@ -144,7 +144,7 @@ disassemble (bfd_vma memaddr, else if ((operand->flags & MN10200_OPERAND_MEMADDR) != 0) (*info->print_address_func) (value, info); - else + else (*info->fprintf_func) (info->stream, "%ld", value); } /* All done. */ @@ -157,7 +157,7 @@ disassemble (bfd_vma memaddr, (*info->fprintf_func) (info->stream, _("unknown\t0x%04lx"), insn); } -int +int print_insn_mn10200 (bfd_vma memaddr, struct disassemble_info *info) { int status;