diff options
author | M R Swami Reddy <MR.Swami.Reddy@nsc.com> | 2009-10-01 08:19:55 +0000 |
---|---|---|
committer | M R Swami Reddy <MR.Swami.Reddy@nsc.com> | 2009-10-01 08:19:55 +0000 |
commit | 69c126d3b759acd708fa91a7c1b0210d20380a6d (patch) | |
tree | 0025385131e72feae09cbe37be4c774f20e0aef0 /opcodes/crx-dis.c | |
parent | 5eda3bd30f1ba4961dab5a051b0effbbd774667a (diff) | |
download | binutils-redhat-69c126d3b759acd708fa91a7c1b0210d20380a6d.tar.gz |
2009-10-01 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
* crx-dis.c (match_opcode): Truncate mcode to 32-bit.
Diffstat (limited to 'opcodes/crx-dis.c')
-rw-r--r-- | opcodes/crx-dis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/crx-dis.c b/opcodes/crx-dis.c index 6675720d7d..c752457261 100644 --- a/opcodes/crx-dis.c +++ b/opcodes/crx-dis.c @@ -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]; |