2009-10-01 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
authorM R Swami Reddy <MR.Swami.Reddy@nsc.com>
Thu, 1 Oct 2009 08:19:55 +0000 (08:19 +0000)
committerM R Swami Reddy <MR.Swami.Reddy@nsc.com>
Thu, 1 Oct 2009 08:19:55 +0000 (08:19 +0000)
       * crx-dis.c (match_opcode): Truncate mcode to 32-bit.

opcodes/ChangeLog
opcodes/crx-dis.c

index a3363d8..5be200c 100644 (file)
@@ -1,3 +1,7 @@
+2009-10-01  M R Swami Reddy <MR.Swami.Reddy@nsc.com>
+
+       * crx-dis.c (match_opcode): Truncate mcode to 32-bit.
+
 2009-09-29  DJ Delorie  <dj@redhat.com>
 
        * Makefile.am: Add RX files.
index 6675720..c752457 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];