Fix moxie disassembly for new branch semantics
This commit is contained in:
parent
63b4626663
commit
1f9b75dde1
2 changed files with 6 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue