summaryrefslogtreecommitdiff
path: root/opcodes/mips-dis.c
diff options
context:
space:
mode:
authorxmj <xmj>2011-01-11 07:22:05 +0000
committerxmj <xmj>2011-01-11 07:22:05 +0000
commitb892e0ddbfdf37bf33fb34bb7cf4625b017c91e3 (patch)
treeb446d026e512b9e49aee54f1074d3ea07fe17ff4 /opcodes/mips-dis.c
parentb341157e812cedf736dd4cd9d9a3131fd0c54ea0 (diff)
downloadbinutils-redhat-b892e0ddbfdf37bf33fb34bb7cf4625b017c91e3.tar.gz
Take unadjusted offset for loongson3a specific instructions.
Diffstat (limited to 'opcodes/mips-dis.c')
-rw-r--r--opcodes/mips-dis.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/opcodes/mips-dis.c b/opcodes/mips-dis.c
index ca65d71f59..c38a7e164c 100644
--- a/opcodes/mips-dis.c
+++ b/opcodes/mips-dis.c
@@ -991,7 +991,8 @@ print_insn_args (const char *d,
delta = (l >> OP_SH_OFFSET_C) & OP_MASK_OFFSET_C;
if (delta & 0x100)
delta |= ~OP_MASK_OFFSET_C;
- (*info->fprintf_func) (info->stream, "%d", delta);
+ /* Left shift 4 bits to print the real offset. */
+ (*info->fprintf_func) (info->stream, "%d", delta << 4);
break;
case 'z':