aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-05-11 07:10:19 +0000
committerAlan Modra <amodra@gmail.com>2000-05-11 07:10:19 +0000
commit73da6b6b40f318c9b53b44cc784daaac7fbfc7f6 (patch)
tree130addd8b679b5994ec061c640145f0ae9a27140 /opcodes
parent2315914daec9a30008ed4e68a839b92f261b4935 (diff)
downloadgdb-73da6b6b40f318c9b53b44cc784daaac7fbfc7f6.zip
gdb-73da6b6b40f318c9b53b44cc784daaac7fbfc7f6.tar.gz
gdb-73da6b6b40f318c9b53b44cc784daaac7fbfc7f6.tar.bz2
Don't mask top 32 bits of 64-bit address.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog5
-rw-r--r--opcodes/mips-dis.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 6f7043f..6bacde5 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,8 @@
+2000-05-11 Ulf Carlsson <ulfc@engr.sgi.com>
+
+ * mips-dis.c (print_insn_arg): Don't mask top 32 bits of 64-bit
+ target addresses for 'jal' and 'j'.
+
2000-05-10 Geoff Keating <geoffk@cygnus.com>
* ppc-opc.c (powerpc_opcodes): Make the predicted-branch opcodes
diff --git a/opcodes/mips-dis.c b/opcodes/mips-dis.c
index 9ab9f98..11e322c 100644
--- a/opcodes/mips-dis.c
+++ b/opcodes/mips-dis.c
@@ -1,5 +1,6 @@
/* Print mips instructions for GDB, the GNU debugger, or for objdump.
- Copyright (c) 1989, 91-97, 1998 Free Software Foundation, Inc.
+ Copyright (c) 1989, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
+ Free Software Foundation, Inc.
Contributed by Nobuyuki Hikichi(hikichi@sra.co.jp).
This file is part of GDB, GAS, and the GNU binutils.
@@ -132,7 +133,8 @@ print_insn_arg (d, l, pc, info)
case 'a':
(*info->print_address_func)
- (((pc & 0xF0000000) | (((l >> OP_SH_TARGET) & OP_MASK_TARGET) << 2)),
+ (((pc & ~ (bfd_vma) 0x0fffffff)
+ | (((l >> OP_SH_TARGET) & OP_MASK_TARGET) << 2)),
info);
break;