aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorMingjie Xing <mingjie.xing@gmail.com>2011-01-11 07:22:09 +0000
committerMingjie Xing <mingjie.xing@gmail.com>2011-01-11 07:22:09 +0000
commitc95354ed1373286584d5729f3c0ce97cded6fbce (patch)
tree902dc5eb658c1799a50183eadc15e306557a9c5d /opcodes
parent0d7a18f740233546470b92af36ebb116405bc810 (diff)
downloadgdb-c95354ed1373286584d5729f3c0ce97cded6fbce.zip
gdb-c95354ed1373286584d5729f3c0ce97cded6fbce.tar.gz
gdb-c95354ed1373286584d5729f3c0ce97cded6fbce.tar.bz2
Take unadjusted offset for loongson3a specific instructions.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog5
-rw-r--r--opcodes/mips-dis.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index f7b2fa9..a863510 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,8 @@
+2011-01-11 Mingjie Xing <mingjie.xing@gmail.com>
+
+ * mips-dis.c (print_insn_args): Adjust the value to print the real
+ offset for "+c" argument.
+
2011-01-10 Nick Clifton <nickc@redhat.com>
* po/da.po: Updated Danish translation.
diff --git a/opcodes/mips-dis.c b/opcodes/mips-dis.c
index ca65d71..c38a7e1 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':