From: Anthony Green Date: Fri, 14 Sep 2012 10:49:03 +0000 (+0000) Subject: Fix moxie disassembly for new branch semantics X-Git-Tag: sid-snapshot-20121001~154 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1f9b75dde1191b37e6a40faf56ea2e92462ca89c;p=platform%2Fupstream%2Fbinutils.git Fix moxie disassembly for new branch semantics --- diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index a1b2bfe..5b70358 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2012-09-14 Anthony Green + + * moxie-dis.c (print_insn_moxie): Branch targets are relative to + the address after the branch instruction. + 2012-09-13 Anthony Green * moxie-dis.c (print_insn_moxie): Handle bi-endian encodings. diff --git a/opcodes/moxie-dis.c b/opcodes/moxie-dis.c index 77821bb..38429de 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: