[committed]Patch for crx target specific

M R Swami Reddy MR.Swami.Reddy@nsc.com
Thu Oct 1 08:12:00 GMT 2009


Hi,

Applied the below patch on 2.20 branch. The below patch work with 64-bit 
machines.
[I will apply this same patch on cvs mainline also].

ChangeLog:
    crx-dis.c (match_opcode): Truncate mcode to 32-bit.


===================================================================
RCS file: /cvs/src/src/opcodes/crx-dis.c,v
retrieving revision 1.14
diff -u -r1.14 crx-dis.c
--- crx-dis.c   2 Sep 2009 07:20:29 -0000       1.14
+++ crx-dis.c   1 Oct 2009 08:07:43 -0000
@@ -355,7 +355,7 @@
   unsigned long mask;

   /* The instruction 'constant' opcode doewsn't exceed 32 bits.  */
-  unsigned long doubleWord = words[1] + (words[0] << 16);
+  unsigned long doubleWord = (words[1] + (words[0] << 16)) & 0xffffffff;

   /* Start searching from end of instruction table.  */
   instruction = &crx_instruction[NUMOPCODES - 2];




More information about the Binutils mailing list