make dep-am and regen
[binutils-gdb.git] / opcodes / d30v-dis.c
index c7385d94c9099f5daec4d4acfbe62cd122563842..ec21305dc8c058c31330d85f98b82883c5408481 100644 (file)
@@ -1,15 +1,18 @@
 /* Disassemble D30V instructions.
-   Copyright 1997, 1998, 2000, 2001, 2005 Free Software Foundation, Inc.
+   Copyright 1997, 1998, 2000, 2001, 2005, 2007
+   Free Software Foundation, Inc.
 
-   This program is free software; you can redistribute it and/or modify
+   This file is part of the GNU opcodes library.
+
+   This library is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
-   (at your option) any later version.
+   the Free Software Foundation; either version 3, or (at your option)
+   any later version.
 
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
+   It is distributed in the hope that it will be useful, but WITHOUT
+   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
+   License for more details.
 
    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
@@ -344,7 +347,7 @@ print_insn_d30v (bfd_vma memaddr, struct disassemble_info *info)
     {
       info->bytes_per_line = 8;
       if (!(result = lookup_opcode (&insn, in1, 0)))
-       (*info->fprintf_func) (info->stream, ".long\t0x%x", in1);
+       (*info->fprintf_func) (info->stream, ".long\t0x%lx", in1);
       else
        print_insn (info, memaddr, (long long) in1, &insn, 0, result);
       return 4;
@@ -356,7 +359,7 @@ print_insn_d30v (bfd_vma memaddr, struct disassemble_info *info)
       /* LONG instruction.  */
       if (!(result = lookup_opcode (&insn, in1, 1)))
        {
-         (*info->fprintf_func) (info->stream, ".long\t0x%x,0x%x", in1, in2);
+         (*info->fprintf_func) (info->stream, ".long\t0x%lx,0x%lx", in1, in2);
          return 8;
        }
       num = (long long) in1 << 32 | in2;
@@ -366,7 +369,7 @@ print_insn_d30v (bfd_vma memaddr, struct disassemble_info *info)
     {
       num = in1;
       if (!(result = lookup_opcode (&insn, in1, 0)))
-       (*info->fprintf_func) (info->stream, ".long\t0x%x", in1);
+       (*info->fprintf_func) (info->stream, ".long\t0x%lx", in1);
       else
        print_insn (info, memaddr, num, &insn, 0, result);
 
@@ -387,7 +390,7 @@ print_insn_d30v (bfd_vma memaddr, struct disassemble_info *info)
       insn.form = NULL;
       num = in2;
       if (!(result = lookup_opcode (&insn, in2, 0)))
-       (*info->fprintf_func) (info->stream, ".long\t0x%x", in2);
+       (*info->fprintf_func) (info->stream, ".long\t0x%lx", in2);
       else
        print_insn (info, memaddr, num, &insn, 0, result);
     }