X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=opcodes%2For32-opc.c;h=df99d56163633916d94b06752510b00a96548eec;hb=569283d40e3546979fd7c222c61408dd107de32b;hp=ff624e7a8c04bbf35ddc6ba5e1c789f077b7cf8c;hpb=91d6fa6a035cc7d0b7be5c99c194a64cb80924b0;p=deliverable%2Fbinutils-gdb.git diff --git a/opcodes/or32-opc.c b/opcodes/or32-opc.c index ff624e7a8c..df99d56163 100644 --- a/opcodes/or32-opc.c +++ b/opcodes/or32-opc.c @@ -1,5 +1,6 @@ /* Table of opcodes for the OpenRISC 1000 ISA. - Copyright 2002, 2004, 2005, 2007, 2008, 2009 Free Software Foundation, Inc. + Copyright 2002, 2004, 2005, 2007, 2008, 2009, 2012 + Free Software Foundation, Inc. Contributed by Damjan Lampret (lampret@opencores.org). This file is part of the GNU opcodes library. @@ -19,18 +20,17 @@ Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ -/* We treat all letters the same in encode/decode routines so - we need to assign some characteristics to them like signess etc. */ +#include "sysdep.h" #include #include #include #include "safe-ctype.h" #include "ansidecl.h" -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif #include "opcode/or32.h" +/* We treat all letters the same in encode/decode routines so + we need to assign some characteristics to them like signess etc. */ + const struct or32_letter or32_letters[] = { { 'A', NUM_UNSIGNED }, @@ -898,7 +898,7 @@ or32_extract (char param_ch, char *enc_initial, unsigned long insn) { unsigned long tmp = strtol (enc, NULL, 16); #if DEBUG - printf (" enc=%s, tmp=%x ", enc, tmp); + printf (" enc=%s, tmp=%lx ", enc, tmp); #endif if (param_ch == '0') tmp = 15 - tmp; @@ -918,7 +918,7 @@ or32_extract (char param_ch, char *enc_initial, unsigned long insn) opc_pos--; param_pos--; #if DEBUG - printf ("\n ret=%x opc_pos=%x, param_pos=%x\n", ret, opc_pos, param_pos); + printf ("\n ret=%lx opc_pos=%x, param_pos=%x\n", ret, opc_pos, param_pos); #endif if (ISLOWER (param_ch)) ret -= ((insn >> opc_pos) & 0x1) << param_pos; @@ -940,7 +940,7 @@ or32_extract (char param_ch, char *enc_initial, unsigned long insn) enc++; #if DEBUG - printf ("ret=%x\n", ret); + printf ("ret=%lx\n", ret); #endif return ret; }