Add constructor to stap_static_probe_ops
[deliverable/binutils-gdb.git] / cpu / iq2000.opc
index 5da6911a1cccbdb05c08c7e634c2f6666ea57cbb..f180373737095e17969719ce7bbcc28209114b0f 100644 (file)
@@ -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;
@@ -259,7 +261,7 @@ static const char *
 parse_lo16 (CGEN_CPU_DESC cd,
            const char **strp,
            int opindex,
-           long *valuep)
+           unsigned long *valuep)
 {
   if (strncasecmp (*strp, "%lo(", 4) == 0)
     {
@@ -291,7 +293,7 @@ static const char *
 parse_mlo16 (CGEN_CPU_DESC cd,
             const char **strp,
             int opindex,
-            long *valuep)
+            unsigned long *valuep)
 {
   if (strncasecmp (*strp, "%lo(", 4) == 0)
     {
This page took 0.041019 seconds and 4 git commands to generate.