X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=include%2Fopcode%2Ftic30.h;h=34ae57faab587b7e31a77ae25f09eab51fc222b6;hb=9e790a80160676e7fd3fb8be6cf3c1c77d9ded81;hp=a70027591188569d358a43c1284e94828058dd67;hpb=ed288bb597072176e84fc8279707a3f2f475779b;p=deliverable%2Fbinutils-gdb.git diff --git a/include/opcode/tic30.h b/include/opcode/tic30.h index a700275911..34ae57faab 100644 --- a/include/opcode/tic30.h +++ b/include/opcode/tic30.h @@ -1,23 +1,23 @@ /* tic30.h -- Header file for TI TMS320C30 opcode table - Copyright 1998 Free Software Foundation, Inc. + Copyright (C) 1998-2020 Free Software Foundation, Inc. Contributed by Steven Haworth (steve@pm.cse.rmit.edu.au) -This file is part of GDB, GAS, and the GNU binutils. + This file is part of GDB, GAS, and the GNU binutils. -GDB, GAS, and the GNU binutils are free software; you can redistribute -them and/or modify them under the terms of the GNU General Public -License as published by the Free Software Foundation; either version -1, or (at your option) any later version. + GDB, GAS, and the GNU binutils are free software; you can redistribute + them and/or modify them 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. -GDB, GAS, and the GNU binutils are distributed in the hope that they -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. + GDB, GAS, and the GNU binutils are distributed in the hope that they + 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 file; see the file COPYING. If not, write to the Free -Software Foundation, 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 file; see the file COPYING3. If not, write to the Free + Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA + 02110-1301, USA. */ /* FIXME: The opcode table should be in opcodes/tic30-opc.c, not in a header file. */ @@ -27,7 +27,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA struct _register { - char *name; + const char *name; unsigned char opcode; unsigned char regtype; }; @@ -135,7 +135,7 @@ static const reg *const tic30_regtab_end #define PostIR0_Add_BitRev 0x19 typedef struct { - char *syntax; + const char *syntax; unsigned char modfield; unsigned char displacement; } ind_addr_type; @@ -215,7 +215,7 @@ static const ind_addr_type *const tic30_indaddrtab_end typedef struct _template { - char *name; + const char *name; unsigned int operands; /* how many operands */ unsigned int base_opcode; /* base_opcode is the fundamental opcode byte */ /* the bits in opcode_modifier are used to generate the final opcode from @@ -241,9 +241,9 @@ typedef struct _template #define Imm_SInt 2 #define Imm_UInt 3 } -template; +insn_template; -static const template tic30_optab[] = { +static const insn_template tic30_optab[] = { { "absf" ,2,0x00000000,AddressMode, { GAddr1, Rn, 0 }, Imm_Float }, { "absi" ,2,0x00800000,AddressMode, { GAddr2, AllReg, 0 }, Imm_SInt }, { "addc" ,2,0x01000000,AddressMode, { GAddr2, AllReg, 0 }, Imm_SInt }, @@ -604,11 +604,11 @@ static const template tic30_optab[] = { { "" ,0,0x00000000,0, { 0, 0, 0 }, 0 } }; -static const template *const tic30_optab_end = +static const insn_template *const tic30_optab_end = tic30_optab + sizeof(tic30_optab)/sizeof(tic30_optab[0]); typedef struct { - char *name; + const char *name; unsigned int operands_1; unsigned int operands_2; unsigned int base_opcode;