X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=opcodes%2Fmt-desc.c;h=24e2af02f5ecc6b751abbb2b976400de962d4f79;hb=940171d08654a9ff5bf9b8886f76e8189a02cf09;hp=4bda146e59e5aad879f78d4a529bffaf69b7d442;hpb=d031aafbfe54750209d9100477ce17193d8b0175;p=deliverable%2Fbinutils-gdb.git diff --git a/opcodes/mt-desc.c b/opcodes/mt-desc.c index 4bda146e59..24e2af02f5 100644 --- a/opcodes/mt-desc.c +++ b/opcodes/mt-desc.c @@ -2,23 +2,23 @@ THIS FILE IS MACHINE GENERATED WITH CGEN. -Copyright 1996-2005 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., -51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, 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. */ @@ -186,11 +186,7 @@ CGEN_KEYWORD mt_cgen_opval_h_spr = /* The hardware table. */ -#if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE) #define A(a) (1 << CGEN_HW_##a) -#else -#define A(a) (1 << CGEN_HW_/**/a) -#endif const CGEN_HW_ENTRY mt_cgen_hw_table[] = { @@ -209,11 +205,7 @@ const CGEN_HW_ENTRY mt_cgen_hw_table[] = /* The instruction field table. */ -#if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE) #define A(a) (1 << CGEN_IFLD_##a) -#else -#define A(a) (1 << CGEN_IFLD_/**/a) -#endif const CGEN_IFLD mt_cgen_ifld_table[] = { @@ -311,238 +303,230 @@ const CGEN_IFLD mt_cgen_ifld_table[] = /* The operand table. */ -#if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE) #define A(a) (1 << CGEN_OPERAND_##a) -#else -#define A(a) (1 << CGEN_OPERAND_/**/a) -#endif -#if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE) #define OPERAND(op) MT_OPERAND_##op -#else -#define OPERAND(op) MT_OPERAND_/**/op -#endif const CGEN_OPERAND mt_cgen_operand_table[] = { /* pc: program counter */ { "pc", MT_OPERAND_PC, HW_H_PC, 0, 0, - { 0, { (const PTR) &mt_cgen_ifld_table[MT_F_NIL] } }, + { 0, { (const PTR) &mt_cgen_ifld_table[MT_F_NIL] } }, { 0|A(SEM_ONLY), { { { (1<num; + if (mach != NULL) + machs |= 1 << mach->num; break; } case CGEN_CPU_OPEN_ENDIAN : @@ -1273,7 +1250,7 @@ mt_cgen_cpu_open (enum cgen_cpu_open_arg arg_type, ...) /* Default to not allowing signed overflow. */ cd->signed_overflow_ok_p = 0; - + return (CGEN_CPU_DESC) cd; } @@ -1313,7 +1290,7 @@ mt_cgen_cpu_close (CGEN_CPU_DESC cd) for (i = 0; i < cd->insn_table.num_init_entries; ++i, ++insns) if (CGEN_INSN_RX (insns)) regfree (CGEN_INSN_RX (insns)); - } + } if (cd->macro_insn_table.init_entries) free ((CGEN_INSN *) cd->macro_insn_table.init_entries);