summaryrefslogtreecommitdiff
path: root/opcodes/mips-dis.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2000-05-11 07:10:19 +0000
committerAlan Modra <amodra@bigpond.net.au>2000-05-11 07:10:19 +0000
commit63e1a9eca90dbbc224929de7f5e115a2cc36d1e3 (patch)
treef549efcd9ed8bb8ee2efd81655ca39a70a1cdfe8 /opcodes/mips-dis.c
parent74c341069a9b4f93c48afe930df7cc6635f18e64 (diff)
downloadgdb-63e1a9eca90dbbc224929de7f5e115a2cc36d1e3.tar.gz
Don't mask top 32 bits of 64-bit address.
Diffstat (limited to 'opcodes/mips-dis.c')
-rw-r--r--opcodes/mips-dis.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/opcodes/mips-dis.c b/opcodes/mips-dis.c
index 9ab9f98690c..11e322c2bba 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;