2003-07-30 Jason Eckhardt <jle@rice.edu>
* i860-dis.c: Convert to ISO C90. Remove superflous prototypes.
This commit is contained in:
parent
c48a845bff
commit
7f8a68cd19
2 changed files with 7 additions and 14 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2003-07-30 Jason Eckhardt <jle@rice.edu>
|
||||||
|
|
||||||
|
* i860-dis.c: Convert to ISO C90. Remove superflous prototypes.
|
||||||
|
|
||||||
2003-07-30 Nick Clifton <nickc@redhat.com>
|
2003-07-30 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* po/ro.po: Updated Romanian translation.
|
* po/ro.po: Updated Romanian translation.
|
||||||
|
|
|
@ -44,10 +44,6 @@ static const char *const crnames[] =
|
||||||
"p0", "p1", "p2", "p3", "--", "--", "--", "--" };
|
"p0", "p1", "p2", "p3", "--", "--", "--", "--" };
|
||||||
|
|
||||||
|
|
||||||
/* Prototypes. */
|
|
||||||
static int sign_ext PARAMS((unsigned int, int));
|
|
||||||
static void print_br_address PARAMS((disassemble_info *, bfd_vma, long));
|
|
||||||
|
|
||||||
|
|
||||||
/* True if opcode is xor, xorh, and, andh, or, orh, andnot, andnoth. */
|
/* True if opcode is xor, xorh, and, andh, or, orh, andnot, andnoth. */
|
||||||
#define BITWISE_OP(op) ((op) == 0x30 || (op) == 0x31 \
|
#define BITWISE_OP(op) ((op) == 0x30 || (op) == 0x31 \
|
||||||
|
@ -60,9 +56,7 @@ static void print_br_address PARAMS((disassemble_info *, bfd_vma, long));
|
||||||
|
|
||||||
/* Sign extend N-bit number. */
|
/* Sign extend N-bit number. */
|
||||||
static int
|
static int
|
||||||
sign_ext (x, n)
|
sign_ext (unsigned int x, int n)
|
||||||
unsigned int x;
|
|
||||||
int n;
|
|
||||||
{
|
{
|
||||||
int t;
|
int t;
|
||||||
t = x >> (n - 1);
|
t = x >> (n - 1);
|
||||||
|
@ -74,10 +68,7 @@ sign_ext (x, n)
|
||||||
/* Print a PC-relative branch offset. VAL is the sign extended value
|
/* Print a PC-relative branch offset. VAL is the sign extended value
|
||||||
from the branch instruction. */
|
from the branch instruction. */
|
||||||
static void
|
static void
|
||||||
print_br_address (info, memaddr, val)
|
print_br_address (disassemble_info *info, bfd_vma memaddr, long val)
|
||||||
disassemble_info *info;
|
|
||||||
bfd_vma memaddr;
|
|
||||||
long val;
|
|
||||||
{
|
{
|
||||||
|
|
||||||
long adj = (long)memaddr + 4 + (val << 2);
|
long adj = (long)memaddr + 4 + (val << 2);
|
||||||
|
@ -96,9 +87,7 @@ print_br_address (info, memaddr, val)
|
||||||
|
|
||||||
/* Print one instruction. */
|
/* Print one instruction. */
|
||||||
int
|
int
|
||||||
print_insn_i860 (memaddr, info)
|
print_insn_i860 (bfd_vma memaddr, disassemble_info *info)
|
||||||
bfd_vma memaddr;
|
|
||||||
disassemble_info *info;
|
|
||||||
{
|
{
|
||||||
bfd_byte buff[4];
|
bfd_byte buff[4];
|
||||||
unsigned int insn, i;
|
unsigned int insn, i;
|
||||||
|
|
Loading…
Reference in a new issue