X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=cpu%2Fiq2000.opc;h=f180373737095e17969719ce7bbcc28209114b0f;hb=f2e1c129f8f0985ec80e6cf775cf3e4afbced6fa;hp=63ef0768dd53fb85eaca22cf14f65f20abd9b3bb;hpb=3ec2b351bd81ef7a827c8853e04c5612d00be84a;p=deliverable%2Fbinutils-gdb.git diff --git a/cpu/iq2000.opc b/cpu/iq2000.opc index 63ef0768dd..f180373737 100644 --- a/cpu/iq2000.opc +++ b/cpu/iq2000.opc @@ -1,6 +1,6 @@ /* IQ2000 opcode support. -*- C -*- - Copyright 2000, 2001, 2002, 2005 Free Software Foundation, Inc. + Copyright 2000, 2001, 2002, 2005, 2007, 2009 Free Software Foundation, Inc. Contributed by Red Hat Inc; developed under contract from Fujitsu. @@ -8,7 +8,7 @@ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or + the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -218,6 +218,7 @@ parse_hi16 (CGEN_CPU_DESC cd, if (value & 0x8000) value += 0x10000; value >>= 16; + value &= 0xffff; } *valuep = value; @@ -243,6 +244,7 @@ parse_hi16 (CGEN_CPU_DESC cd, && result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER) value >>= 16; + value &= 0xffff; *valuep = value; return errmsg;