This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[committed]Patch for crx target specific
- From: "M R Swami Reddy" <MR dot Swami dot Reddy at nsc dot com>
- To: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Thu, 01 Oct 2009 13:41:51 +0530
- Subject: [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];