This is the mail archive of the binutils@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]

[committed]Patch for crx target specific


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];



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