From 69c126d3b759acd708fa91a7c1b0210d20380a6d Mon Sep 17 00:00:00 2001 From: M R Swami Reddy Date: Thu, 1 Oct 2009 08:19:55 +0000 Subject: [PATCH] 2009-10-01 M R Swami Reddy * crx-dis.c (match_opcode): Truncate mcode to 32-bit. --- opcodes/ChangeLog | 4 ++++ opcodes/crx-dis.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index a3363d8ca..5be200cf0 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,7 @@ +2009-10-01 M R Swami Reddy + + * crx-dis.c (match_opcode): Truncate mcode to 32-bit. + 2009-09-29 DJ Delorie * Makefile.am: Add RX files. diff --git a/opcodes/crx-dis.c b/opcodes/crx-dis.c index 6675720d7..c75245726 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]; -- 2.11.4.GIT