X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=sim%2Fm32r%2Fmodel2.c;h=00d37ff6187f8ac654db1fb9f4f65b0527d71067;hb=5fd104addfddb68844fb8df67be832ee98ad9888;hp=7328ea4a6ffe43fa6d7eb0c559250b31ca7658af;hpb=16b47b253e65a3d447c57a0dc7a4d0490a3d6628;p=deliverable%2Fbinutils-gdb.git diff --git a/sim/m32r/model2.c b/sim/m32r/model2.c index 7328ea4a6f..00d37ff618 100644 --- a/sim/m32r/model2.c +++ b/sim/m32r/model2.c @@ -2,23 +2,22 @@ THIS FILE IS MACHINE GENERATED WITH CGEN. -Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. +Copyright 1996-2020 Free Software Foundation, Inc. This file is part of the GNU simulators. -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, see . */ @@ -1998,7 +1997,7 @@ model_m32r2_neg (SIM_CPU *current_cpu, void *sem_arg) static int model_m32r2_nop (SIM_CPU *current_cpu, void *sem_arg) { -#define FLD(f) abuf->fields.fmt_empty.f +#define FLD(f) abuf->fields.sfmt_empty.f const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg); const IDESC * UNUSED idesc = abuf->idesc; int cycles = 0; @@ -2076,7 +2075,7 @@ model_m32r2_rach_dsi (SIM_CPU *current_cpu, void *sem_arg) static int model_m32r2_rte (SIM_CPU *current_cpu, void *sem_arg) { -#define FLD(f) abuf->fields.fmt_empty.f +#define FLD(f) abuf->fields.sfmt_empty.f const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg); const IDESC * UNUSED idesc = abuf->idesc; int cycles = 0; @@ -2790,7 +2789,7 @@ model_m32r2_pcmpbz (SIM_CPU *current_cpu, void *sem_arg) static int model_m32r2_sadd (SIM_CPU *current_cpu, void *sem_arg) { -#define FLD(f) abuf->fields.fmt_empty.f +#define FLD(f) abuf->fields.sfmt_empty.f const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg); const IDESC * UNUSED idesc = abuf->idesc; int cycles = 0; @@ -2896,7 +2895,7 @@ model_m32r2_maclh1 (SIM_CPU *current_cpu, void *sem_arg) static int model_m32r2_sc (SIM_CPU *current_cpu, void *sem_arg) { -#define FLD(f) abuf->fields.fmt_empty.f +#define FLD(f) abuf->fields.sfmt_empty.f const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg); const IDESC * UNUSED idesc = abuf->idesc; int cycles = 0; @@ -2915,7 +2914,7 @@ model_m32r2_sc (SIM_CPU *current_cpu, void *sem_arg) static int model_m32r2_snc (SIM_CPU *current_cpu, void *sem_arg) { -#define FLD(f) abuf->fields.fmt_empty.f +#define FLD(f) abuf->fields.sfmt_empty.f const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg); const IDESC * UNUSED idesc = abuf->idesc; int cycles = 0; @@ -3193,7 +3192,7 @@ m32r2_model_init (SIM_CPU *cpu) #define TIMING_DATA(td) 0 #endif -static const MODEL m32r2_models[] = +static const SIM_MODEL m32r2_models[] = { { "m32r2", & m32r2_mach, MODEL_M32R2, TIMING_DATA (& m32r2_timing[0]), m32r2_model_init }, { 0 } @@ -3201,7 +3200,7 @@ static const MODEL m32r2_models[] = /* The properties of this cpu's implementation. */ -static const MACH_IMP_PROPERTIES m32r2f_imp_properties = +static const SIM_MACH_IMP_PROPERTIES m32r2f_imp_properties = { sizeof (SIM_CPU), #if WITH_SCACHE @@ -3243,7 +3242,7 @@ m32r2_init_cpu (SIM_CPU *cpu) #endif } -const MACH m32r2_mach = +const SIM_MACH m32r2_mach = { "m32r2", "m32r2", MACH_M32R2, 32, 32, & m32r2_models[0], & m32r2f_imp_properties,