projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for debuginfod to the binutils (disable by default, enabled via a configu...
[deliverable/binutils-gdb.git]
/
opcodes
/
cris-dis.c
diff --git
a/opcodes/cris-dis.c
b/opcodes/cris-dis.c
index 64e8e1dd7a0655ce024b5eab58729150b23bc389..8f2a77700c48a065dd26d4304ed7625ff507372f 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, 2009, 2012
- Free Software Foundation, Inc.
+ Copyright (C) 2000-2020 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.
@@
-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 ',':
@@
-851,9
+850,8
@@
print_with_operands (const struct cris_opcode *opcodep,
case 'n':
{
/* Like N but pc-relative to the start of the insn. */
case 'n':
{
/* Like N but pc-relative to the start of the insn. */
- unsigned long number
- = (buffer[2] + buffer[3] * 256 + buffer[4] * 65536
- + buffer[5] * 0x1000000 + addr);
+ int32_t number = (buffer[2] + buffer[3] * 256 + buffer[4] * 65536
+ + buffer[5] * 0x1000000u);
/* Finish off and output previous formatted bytes. */
*tp = 0;
/* Finish off and output previous formatted bytes. */
*tp = 0;
@@
-861,14
+859,14
@@
print_with_operands (const struct cris_opcode *opcodep,
(*info->fprintf_func) (info->stream, "%s", temp);
tp = temp;
(*info->fprintf_func) (info->stream, "%s", temp);
tp = temp;
- (*info->print_address_func) (
(bfd_vma)
number, info);
+ (*info->print_address_func) (
addr +
number, info);
}
break;
case 'u':
{
/* Like n but the offset is bits <3:0> in the instruction. */
}
break;
case 'u':
{
/* Like n but the offset is bits <3:0> in the instruction. */
- unsigned
long number = (buffer[0] & 0xf) * 2 + addr
;
+ unsigned
int number = (buffer[0] & 0xf) * 2
;
/* Finish off and output previous formatted bytes. */
*tp = 0;
/* Finish off and output previous formatted bytes. */
*tp = 0;
@@
-876,7
+874,7
@@
print_with_operands (const struct cris_opcode *opcodep,
(*info->fprintf_func) (info->stream, "%s", temp);
tp = temp;
(*info->fprintf_func) (info->stream, "%s", temp);
tp = temp;
- (*info->print_address_func) (
(bfd_vma)
number, info);
+ (*info->print_address_func) (
addr +
number, info);
}
break;
}
break;
@@
-890,7
+888,7
@@
print_with_operands (const struct cris_opcode *opcodep,
{
/* We're looking at [pc+], i.e. we need to output an immediate
number, where the size can depend on different things. */
{
/* We're looking at [pc+], i.e. we need to output an immediate
number, where the size can depend on different things. */
-
long
number;
+
int32_t
number;
int signedp
= ((*cs == 'z' && (insn & 0x20))
|| opcodep->match == BDAP_QUICK_OPCODE);
int signedp
= ((*cs == 'z' && (insn & 0x20))
|| opcodep->match == BDAP_QUICK_OPCODE);
@@
-941,9
+939,8
@@
print_with_operands (const struct cris_opcode *opcodep,
break;
case 4:
break;
case 4:
- number
- = buffer[2] + buffer[3] * 256 + buffer[4] * 65536
- + buffer[5] * 0x1000000;
+ number = (buffer[2] + buffer[3] * 256 + buffer[4] * 65536
+ + buffer[5] * 0x1000000u);
break;
default:
break;
default:
@@
-1043,10
+1040,10
@@
print_with_operands (const struct cris_opcode *opcodep,
{
/* It's [pc+]. This cannot possibly be anything
but an address. */
{
/* It's [pc+]. This cannot possibly be anything
but an address. */
- unsigned long number
-
= prefix_buffer[2]
+ prefix_buffer[3] * 256
- + prefix_buffer[4] * 65536
-
+ prefix_buffer[5] * 0x1000000
;
+ int32_t number = (prefix_buffer[2]
+
+ prefix_buffer[3] * 256
+
+ prefix_buffer[4] * 65536
+
+ prefix_buffer[5] * 0x1000000u)
;
info->target = (bfd_vma) number;
info->target = (bfd_vma) number;
@@
-1132,7
+1129,7
@@
print_with_operands (const struct cris_opcode *opcodep,
if ((prefix_insn & 0x400) && (prefix_insn & 15) == 15)
{
if ((prefix_insn & 0x400) && (prefix_insn & 15) == 15)
{
-
long
number;
+
int32_t
number;
unsigned int nbytes;
/* It's a value. Get its size. */
unsigned int nbytes;
/* It's a value. Get its size. */
@@
-1158,10
+1155,9
@@
print_with_operands (const struct cris_opcode *opcodep,
break;
case 4:
break;
case 4:
- number
- = prefix_buffer[2] + prefix_buffer[3] * 256
- + prefix_buffer[4] * 65536
- + prefix_buffer[5] * 0x1000000;
+ number = (prefix_buffer[2] + prefix_buffer[3] * 256
+ + prefix_buffer[4] * 65536
+ + prefix_buffer[5] * 0x1000000u);
break;
default:
break;
default:
This page took
0.029969 seconds
and
4
git commands to generate.