projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gdb/infrun: move a 'regcache_read_pc' call down to first use
[deliverable/binutils-gdb.git]
/
opcodes
/
hppa-dis.c
diff --git
a/opcodes/hppa-dis.c
b/opcodes/hppa-dis.c
index 48003dcb33dadb6bcbc185ffb9276543517a53c5..93156da7cb029b3fff40288043040476f0e694cc 100644
(file)
--- a/
opcodes/hppa-dis.c
+++ b/
opcodes/hppa-dis.c
@@
-1,5
+1,5
@@
/* Disassembler for the PA-RISC. Somewhat derived from sparc-pinsn.c.
/* Disassembler for the PA-RISC. Somewhat derived from sparc-pinsn.c.
- Copyright (C) 1989-20
18
Free Software Foundation, Inc.
+ Copyright (C) 1989-20
20
Free Software Foundation, Inc.
Contributed by the Center for Software Science at the
University of Utah (pa-gdb-bugs@cs.utah.edu).
Contributed by the Center for Software Science at the
University of Utah (pa-gdb-bugs@cs.utah.edu).
@@
-207,7
+207,7
@@
static void
fput_const (unsigned num, disassemble_info *info)
{
if ((int) num < 0)
fput_const (unsigned num, disassemble_info *info)
{
if ((int) num < 0)
- (*info->fprintf_func) (info->stream, "-%x", -
(int)
num);
+ (*info->fprintf_func) (info->stream, "-%x", -num);
else
(*info->fprintf_func) (info->stream, "%x", num);
}
else
(*info->fprintf_func) (info->stream, "%x", num);
}
@@
-289,7
+289,7
@@
extract_14 (unsigned word)
static int
extract_16 (unsigned word)
{
static int
extract_16 (unsigned word)
{
-
int
m15, m0, m1;
+
unsigned
m15, m0, m1;
m0 = GET_BIT (word, 16);
m1 = GET_BIT (word, 17);
m0 = GET_BIT (word, 16);
m1 = GET_BIT (word, 17);
@@
-304,7
+304,7
@@
extract_16 (unsigned word)
static int
extract_21 (unsigned word)
{
static int
extract_21 (unsigned word)
{
-
int
val;
+
unsigned
val;
word &= MASK_21;
word <<= 11;
word &= MASK_21;
word <<= 11;
@@
-425,7
+425,7
@@
print_insn_hppa (bfd_vma memaddr, disassemble_info *info)
fput_fp_reg (GET_FIELD (insn, 6, 10), info);
break;
fput_fp_reg (GET_FIELD (insn, 6, 10), info);
break;
- /* 'fA' will not generate a space before the reg
si
ter
+ /* 'fA' will not generate a space before the reg
is
ter
name. Normally that is fine. Except that it
causes problems with xmpyu which has no FP format
completer. */
name. Normally that is fine. Except that it
causes problems with xmpyu which has no FP format
completer. */
@@
-1098,9
+1098,9
@@
print_insn_hppa (bfd_vma memaddr, disassemble_info *info)
case '#':
{
case '#':
{
-
int
sign = GET_FIELD (insn, 31, 31);
-
int
imm10 = GET_FIELD (insn, 18, 27);
-
int
disp;
+
unsigned
sign = GET_FIELD (insn, 31, 31);
+
unsigned
imm10 = GET_FIELD (insn, 18, 27);
+
unsigned
disp;
if (sign)
disp = (-1U << 10) | imm10;
if (sign)
disp = (-1U << 10) | imm10;
@@
-1114,9
+1114,9
@@
print_insn_hppa (bfd_vma memaddr, disassemble_info *info)
case 'K':
case 'd':
{
case 'K':
case 'd':
{
-
int
sign = GET_FIELD (insn, 31, 31);
-
int
imm11 = GET_FIELD (insn, 18, 28);
-
int
disp;
+
unsigned
sign = GET_FIELD (insn, 31, 31);
+
unsigned
imm11 = GET_FIELD (insn, 18, 28);
+
unsigned
disp;
if (sign)
disp = (-1U << 11) | imm11;
if (sign)
disp = (-1U << 11) | imm11;
This page took
0.024166 seconds
and
4
git commands to generate.