X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=opcodes%2Fip2k-opc.h;h=4443f97a8b9f54ea4857242b8025d7ef0bfbc9e8;hb=9494d9636612cd9bd22e38625fbc89147beafea7;hp=cbbaa10c774cb73cc12cdb7b85608aa29d36525d;hpb=bf143b25e9fc72d76625cbc229ef804b9ef42bae;p=deliverable%2Fbinutils-gdb.git diff --git a/opcodes/ip2k-opc.h b/opcodes/ip2k-opc.h index cbbaa10c77..4443f97a8b 100644 --- a/opcodes/ip2k-opc.h +++ b/opcodes/ip2k-opc.h @@ -2,29 +2,33 @@ THIS FILE IS MACHINE GENERATED WITH CGEN. -Copyright 1996-2004 Free Software Foundation, Inc. +Copyright (C) 1996-2017 Free Software Foundation, Inc. This file is part of the GNU Binutils and/or GDB, the GNU debugger. -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, or (at your option) -any later version. + This file 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 3, or (at your option) + any later version. -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. + It is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public + License for more details. -You should have received a copy of the GNU General Public License along -with this program; if not, write to the Free Software Foundation, Inc., -59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef IP2K_OPC_H #define IP2K_OPC_H +#ifdef __cplusplus +extern "C" { +#endif + /* -- opc.h */ /* Check applicability of instructions against machines. */ @@ -36,14 +40,14 @@ with this program; if not, write to the Free Software Foundation, Inc., /* Override disassembly hashing - there are variable bits in the top byte of these instructions. */ #define CGEN_DIS_HASH_SIZE 8 -#define CGEN_DIS_HASH(buf,value) (((* (unsigned char*) (buf)) >> 5) % CGEN_DIS_HASH_SIZE) +#define CGEN_DIS_HASH(buf, value) \ + (((* (unsigned char*) (buf)) >> 5) % CGEN_DIS_HASH_SIZE) #define CGEN_ASM_HASH_SIZE 127 -#define CGEN_ASM_HASH(insn) ip2k_asm_hash(insn) +#define CGEN_ASM_HASH(insn) ip2k_asm_hash (insn) -extern unsigned int ip2k_asm_hash PARAMS ((const char *insn)); -extern int ip2k_cgen_insn_supported - PARAMS ((CGEN_CPU_DESC, const CGEN_INSN *)); +extern unsigned int ip2k_asm_hash (const char *); +extern int ip2k_cgen_insn_supported (CGEN_CPU_DESC, const CGEN_INSN *); /* -- opc.c */ /* Enum declaration for ip2k instruction types. */ @@ -115,4 +119,8 @@ struct cgen_fields } + #ifdef __cplusplus + } + #endif + #endif /* IP2K_OPC_H */