This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] The FT32's disassembly of 10-bit literals has the incorrect mask.


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9a09557a93b9f11371e4213589878437e567f897

commit 9a09557a93b9f11371e4213589878437e567f897
Author: jamesbowman <jamesb@excamera.com>
Date:   Fri Sep 25 12:33:30 2015 -0700

    The FT32's disassembly of 10-bit literals has the incorrect mask.
    
    [opcodes]
    	* ft32-dis.c (print_insn_ft32): Fix incorrect data field mask.

Diff:
---
 binutils/ChangeLog | 4 ++++
 opcodes/ft32-dis.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index be987ec..8dd6216 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,7 @@
+2015-09-25  James Bowman  <james.bowman@ftdichip.com>
+
+	* ft32-dis.c (print_insn_ft32): Fix incorrect data field mask.
+
 2015-09-23  Nick Clifton  <nickc@redhat.com>
 
 	PR binutils/15835
diff --git a/opcodes/ft32-dis.c b/opcodes/ft32-dis.c
index 877a7ee..1e01da2 100644
--- a/opcodes/ft32-dis.c
+++ b/opcodes/ft32-dis.c
@@ -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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]