]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2009-10-01 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
authorTristan Gingold <gingold@adacore.com>
Fri, 2 Oct 2009 12:19:05 +0000 (12:19 +0000)
committerTristan Gingold <gingold@adacore.com>
Fri, 2 Oct 2009 12:19:05 +0000 (12:19 +0000)
* crx-dis.c (match_opcode): Truncate mcode to 32-bit.

opcodes/ChangeLog
opcodes/crx-dis.c

index d9f16b84271d210fa2b2a441313951469a4ae337..bbb214685e372ca84e52acf8f3ec963451695538 100644 (file)
@@ -1,3 +1,7 @@
+2009-10-02  M R Swami Reddy <MR.Swami.Reddy@nsc.com>
+
+       * crx-dis.c (match_opcode): Truncate mcode to 32-bit.
+
 2009-10-01  Peter Bergner  <bergner@vnet.ibm.com>
 
        * ppc-opc.c (PPCA2): Use renamed mask PPC_OPCODE_A2.
index 6675720d7defc19d5255e2110c44b56a9a6dff4c..c7524572614e0b3151e372b93a02706ddd059b64 100644 (file)
@@ -355,7 +355,7 @@ match_opcode (void)
   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];