summaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorAnthony Green <green@redhat.com>2012-09-14 10:49:03 +0000
committerAnthony Green <green@redhat.com>2012-09-14 10:49:03 +0000
commit9cd5917ee16c8d8b138bc7c6ffd76a97952b650d (patch)
tree4584743ca0ec5253b8d94198d97d03457127e2b1 /opcodes
parent0b00153731c88710cdaa642c6df394471bf313fb (diff)
downloadbinutils-redhat-9cd5917ee16c8d8b138bc7c6ffd76a97952b650d.tar.gz
Fix moxie disassembly for new branch semantics
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog5
-rw-r--r--opcodes/moxie-dis.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index a1b2bfe5b3..5b703589a8 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,8 @@
+2012-09-14 Anthony Green <green@moxielogic.com>
+
+ * moxie-dis.c (print_insn_moxie): Branch targets are relative to
+ the address after the branch instruction.
+
2012-09-13 Anthony Green <green@moxielogic.com>
* moxie-dis.c (print_insn_moxie): Handle bi-endian encodings.
diff --git a/opcodes/moxie-dis.c b/opcodes/moxie-dis.c
index 77821bba78..38429de1ae 100644
--- a/opcodes/moxie-dis.c
+++ b/opcodes/moxie-dis.c
@@ -205,7 +205,7 @@ print_insn_moxie (bfd_vma addr, struct disassemble_info * info)
{
case MOXIE_F3_PCREL:
fpr (stream, "%s\t", opcode->name);
- info->print_address_func ((bfd_vma) (addr + INST2OFFSET(iword)),
+ info->print_address_func ((bfd_vma) (addr + INST2OFFSET(iword) + 2),
info);
break;
default: