projects
/
platform
/
upstream
/
binutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Automatic date update in version.in
[platform/upstream/binutils.git]
/
opcodes
/
sh-dis.c
diff --git
a/opcodes/sh-dis.c
b/opcodes/sh-dis.c
index
381fa4d
..
86ee416
100644
(file)
--- a/
opcodes/sh-dis.c
+++ b/
opcodes/sh-dis.c
@@
-1,24
+1,26
@@
/* Disassemble SH instructions.
/* Disassemble SH instructions.
- Copyright 1993, 1994, 1995, 1997, 1998, 2000, 2001, 2002, 2003, 2004, 2005
- Free Software Foundation, Inc.
+ Copyright (C) 1993-2014 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
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
You should have received a copy of the GNU General Public License
- along with this
program; if not, write to the Free Softwar
e
- F
oundation, Inc.
, 51 Franklin Street - Fifth Floor, Boston,
+ along with this
file; see the file COPYING. If not, write to th
e
+ F
ree Software Foundation
, 51 Franklin Street - Fifth Floor, Boston,
MA 02110-1301, USA. */
MA 02110-1301, USA. */
-#include <stdio.h>
#include "sysdep.h"
#include "sysdep.h"
+#include <stdio.h>
+
#define STATIC_TABLE
#define DEFINE_TABLE
#define STATIC_TABLE
#define DEFINE_TABLE
@@
-353,10
+355,10
@@
print_insn_ppi (int field_b, struct disassemble_info *info)
print_dsp_reg (field_b & 0xf, fprintf_fn, stream);
break;
case DSP_REG_X:
print_dsp_reg (field_b & 0xf, fprintf_fn, stream);
break;
case DSP_REG_X:
- fprintf_fn (stream, sx_tab[(field_b >> 6) & 3]);
+ fprintf_fn (stream,
"%s",
sx_tab[(field_b >> 6) & 3]);
break;
case DSP_REG_Y:
break;
case DSP_REG_Y:
- fprintf_fn (stream, sy_tab[(field_b >> 4) & 3]);
+ fprintf_fn (stream,
"%s",
sy_tab[(field_b >> 4) & 3]);
break;
case A_MACH:
fprintf_fn (stream, "mach");
break;
case A_MACH:
fprintf_fn (stream, "mach");
@@
-924,11
+926,11
@@
print_insn_sh (bfd_vma memaddr, struct disassemble_info *info)
}
if ((*info->symbol_at_address_func) (val, info))
{
}
if ((*info->symbol_at_address_func) (val, info))
{
- fprintf_fn (stream, "\t!
0x
");
+ fprintf_fn (stream, "\t! ");
(*info->print_address_func) (val, info);
}
else
(*info->print_address_func) (val, info);
}
else
- fprintf_fn (stream, "\t!
0x
%x", val);
+ fprintf_fn (stream, "\t! %x", val);
}
}
}
}