projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[AArch64] PR target/20667, fix disassembler for the "special" optional SYS_Rt operand...
[deliverable/binutils-gdb.git]
/
opcodes
/
cris-dis.c
diff --git
a/opcodes/cris-dis.c
b/opcodes/cris-dis.c
index 01e69cab06c2b4c5ae69d6b76db932812a8b149b..e7052a821ac35849c28ecb4d6f7730833565649a 100644
(file)
--- a/
opcodes/cris-dis.c
+++ b/
opcodes/cris-dis.c
@@
-1,6
+1,5
@@
/* Disassembler code for CRIS.
/* Disassembler code for CRIS.
- Copyright 2000, 2001, 2002, 2004, 2005, 2006, 2007, 2008
- Free Software Foundation, Inc.
+ Copyright (C) 2000-2016 Free Software Foundation, Inc.
Contributed by Axis Communications AB, Lund, Sweden.
Written by Hans-Peter Nilsson.
Contributed by Axis Communications AB, Lund, Sweden.
Written by Hans-Peter Nilsson.
@@
-21,8
+20,8
@@
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
MA 02110-1301, USA. */
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
MA 02110-1301, USA. */
-#include "dis-asm.h"
#include "sysdep.h"
#include "sysdep.h"
+#include "dis-asm.h"
#include "opcode/cris.h"
#include "libiberty.h"
\f
#include "opcode/cris.h"
#include "libiberty.h"
\f
@@
-660,17
+659,17
@@
bytes_to_skip (unsigned int insn,
{
/* Each insn is a word plus "immediate" operands. */
unsigned to_skip = 2;
{
/* Each insn is a word plus "immediate" operands. */
unsigned to_skip = 2;
- const char *template
=
matchedp->args;
+ const char *template
_name = (const char *)
matchedp->args;
const char *s;
const char *s;
- for (s = template; *s; s++)
+ for (s = template
_name
; *s; s++)
if ((*s == 's' || *s == 'N' || *s == 'Y')
&& (insn & 0x400) && (insn & 15) == 15
&& prefix_matchedp == NULL)
{
/* Immediate via [pc+], so we have to check the size of the
operand. */
if ((*s == 's' || *s == 'N' || *s == 'Y')
&& (insn & 0x400) && (insn & 15) == 15
&& prefix_matchedp == NULL)
{
/* Immediate via [pc+], so we have to check the size of the
operand. */
- int mode_size = 1 << ((insn >> 4) & (*template == 'z' ? 1 : 3));
+ int mode_size = 1 << ((insn >> 4) & (*template
_name
== 'z' ? 1 : 3));
if (matchedp->imm_oprnd_size == SIZE_FIX_32)
to_skip += 4;
if (matchedp->imm_oprnd_size == SIZE_FIX_32)
to_skip += 4;
@@
-814,7
+813,7
@@
print_with_operands (const struct cris_opcode *opcodep,
*tp++ = 'c';
*tp++ = 'r';
break;
*tp++ = 'c';
*tp++ = 'r';
break;
-
+
case '[':
case ']':
case ',':
case '[':
case ']':
case ',':
This page took
0.024095 seconds
and
4
git commands to generate.