X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=opcodes%2Fft32-dis.c;h=a8a6bb662206136ec471e5684c820637e92bac16;hb=9494d9636612cd9bd22e38625fbc89147beafea7;hp=877a7eeece420dd27b5d87ab81b0da312d67a06e;hpb=3f8107ab38095bb3db840f9f14a0fd339f55e06e;p=deliverable%2Fbinutils-gdb.git diff --git a/opcodes/ft32-dis.c b/opcodes/ft32-dis.c index 877a7eeece..a8a6bb6622 100644 --- a/opcodes/ft32-dis.c +++ b/opcodes/ft32-dis.c @@ -1,5 +1,5 @@ /* Disassemble ft32 instructions. - Copyright (C) 2013-2015 Free Software Foundation, Inc. + Copyright (C) 2013-2017 Free Software Foundation, Inc. Contributed by FTDI (support@ftdichip.com) This file is part of the GNU opcodes library. @@ -118,7 +118,7 @@ print_insn_ft32 (bfd_vma addr, struct disassemble_info *info) case FT32_FLD_RIMM: imm = (iword >> FT32_FLD_RIMM_BIT) & ((1 << FT32_FLD_RIMM_SIZ) - 1); if (imm & 0x400) - info->print_address_func ((bfd_vma) imm & 0x1ff, info); + info->print_address_func ((bfd_vma) imm & 0x3ff, info); else fpr(stream, "$r%d", imm & 0x1f); break;