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 | 4ded9dda7cac16de63928596e8c7e29984515089 (patch) | |
tree | aee4a3d34054ebedd49e61f1906bedd60bc1133c /opcodes | |
parent | d5e7ea07f51c7a016915f6ea261808bf3fbd430b (diff) | |
download | binutils-4ded9dda7cac16de63928596e8c7e29984515089.zip binutils-4ded9dda7cac16de63928596e8c7e29984515089.tar.gz binutils-4ded9dda7cac16de63928596e8c7e29984515089.tar.bz2 |
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')
-rw-r--r-- | opcodes/ChangeLog | 4 | ||||
-rw-r--r-- | opcodes/crx-dis.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index a3363d8..5be200c 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -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. diff --git a/opcodes/crx-dis.c b/opcodes/crx-dis.c index 6675720..c752457 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]; |