X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gas%2Fitbl-ops.h;h=f9898729ddf31c5c06e0567cadb496fe6cb8913e;hb=1d3eb55695b7b9014e07ac1b0c81a2c685d68e20;hp=340d713295bf801912bb73f13b8c6102c685ed15;hpb=fa803dc60f0bf01297674c41d001798e18ade4dc;p=deliverable%2Fbinutils-gdb.git diff --git a/gas/itbl-ops.h b/gas/itbl-ops.h index 340d713295..f9898729dd 100644 --- a/gas/itbl-ops.h +++ b/gas/itbl-ops.h @@ -1,11 +1,11 @@ /* itbl-ops.h - Copyright (C) 1997 Free Software Foundation, Inc. + Copyright (C) 1997-2020 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. GAS 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) + the Free Software Foundation; either version 3, or (at your option) any later version. GAS is distributed in the hope that it will be useful, @@ -15,13 +15,11 @@ You should have received a copy of the GNU General Public License along with GAS; see the file COPYING. If not, write to the Free - Software Foundation, 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. */ + Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA + 02110-1301, USA. */ /* External functions, constants and defines for itbl support */ -#include "ansidecl.h" -#include "targ-cpu.h" #ifdef HAVE_ITBL_CPU #include "itbl-cpu.h" #endif @@ -71,33 +69,32 @@ typedef enum typedef enum { e_p0, - e_nprocs = NUMBER_OF_PROCESSORS, + e_nprocs = ITBL_NUMBER_OF_PROCESSORS, e_invproc /* invalid processor */ } e_processor; -/* 0 means an instruction table was not specified. */ +/* 0 means an instruction table was not specified. */ extern int itbl_have_entries; /* These routines are visible to the main part of the assembler */ -int itbl_parse PARAMS ((char *insntbl)); -void itbl_init PARAMS ((void)); -char *itbl_get_field PARAMS ((char **s)); -unsigned long itbl_assemble PARAMS ((char *name, char *operands)); -int itbl_disassemble PARAMS ((char *str, unsigned long insn)); -int itbl_parse PARAMS ((char *tbl)); /* parses insn tbl */ -unsigned long itbl_get_reg_val PARAMS ((char *name)); -unsigned long itbl_get_val PARAMS ((e_processor processor, e_type type, - char *name)); -char *itbl_get_name PARAMS ((e_processor processor, e_type type, - unsigned long val)); +int itbl_parse (char *insntbl); +void itbl_init (void); +char *itbl_get_field (char **s); +unsigned long itbl_assemble (char *name, char *operands); +int itbl_disassemble (char *str, unsigned long insn); +int itbl_parse (char *tbl); /* parses insn tbl */ +int itbl_get_reg_val (char *name, unsigned long *pval); +int itbl_get_val (e_processor processor, e_type type, char *name, + unsigned long *pval); +char *itbl_get_name (e_processor processor, e_type type, unsigned long val); /* These routines are called by the table parser used to build the - dynamic list of new processor instructions and registers. */ - -struct itbl_entry *itbl_add_reg PARAMS ((int yyproc, int yytype, - char *regname, int regnum)); -struct itbl_entry *itbl_add_insn PARAMS ((int yyproc, char *name, - unsigned long value, int sbit, int ebit, unsigned long flags)); -struct itbl_field *itbl_add_operand PARAMS ((struct itbl_entry * e, int yytype, - int sbit, int ebit, unsigned long flags)); + dynamic list of new processor instructions and registers. */ + +struct itbl_entry *itbl_add_reg (int yyproc, int yytype, + char *regname, int regnum); +struct itbl_entry *itbl_add_insn (int yyproc, char *name, + unsigned long value, int sbit, int ebit, unsigned long flags); +struct itbl_field *itbl_add_operand (struct itbl_entry * e, int yytype, + int sbit, int ebit, unsigned long flags);