📄 model.c
字号:
/* Simulator model support for i960base.THIS FILE IS MACHINE GENERATED WITH CGEN.Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.This file is part of the GNU Simulators.This program is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2, 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 ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.You should have received a copy of the GNU General Public License alongwith this program; if not, write to the Free Software Foundation, Inc.,59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.*/#define WANT_CPU i960base#define WANT_CPU_I960BASE#include "sim-main.h"/* The profiling data is recorded here, but is accessed via the profiling mechanism. After all, this is information for profiling. */#if WITH_PROFILE_MODEL_P/* Model handlers for each insn. */static intmodel_i960KA_mulo (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_emul.f const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg); const IDESC * UNUSED idesc = abuf->idesc; int cycles = 0; { int referenced = 0; int UNUSED insn_referenced = abuf->written; cycles += i960base_model_i960KA_u_exec (current_cpu, idesc, 0, referenced); } return cycles;#undef FLD}static intmodel_i960KA_mulo1 (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_emul1.f const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg); const IDESC * UNUSED idesc = abuf->idesc; int cycles = 0; { int referenced = 0; int UNUSED insn_referenced = abuf->written; cycles += i960base_model_i960KA_u_exec (current_cpu, idesc, 0, referenced); } return cycles;#undef FLD}static intmodel_i960KA_mulo2 (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_emul2.f const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg); const IDESC * UNUSED idesc = abuf->idesc; int cycles = 0; { int referenced = 0; int UNUSED insn_referenced = abuf->written; cycles += i960base_model_i960KA_u_exec (current_cpu, idesc, 0, referenced); } return cycles;#undef FLD}static intmodel_i960KA_mulo3 (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_emul3.f const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg); const IDESC * UNUSED idesc = abuf->idesc; int cycles = 0; { int referenced = 0; int UNUSED insn_referenced = abuf->written; cycles += i960base_model_i960KA_u_exec (current_cpu, idesc, 0, referenced); } return cycles;#undef FLD}static intmodel_i960KA_remo (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_emul.f const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg); const IDESC * UNUSED idesc = abuf->idesc; int cycles = 0; { int referenced = 0; int UNUSED insn_referenced = abuf->written; cycles += i960base_model_i960KA_u_exec (current_cpu, idesc, 0, referenced); } return cycles;#undef FLD}static intmodel_i960KA_remo1 (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_emul1.f const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg); const IDESC * UNUSED idesc = abuf->idesc; int cycles = 0; { int referenced = 0; int UNUSED insn_referenced = abuf->written; cycles += i960base_model_i960KA_u_exec (current_cpu, idesc, 0, referenced); } return cycles;#undef FLD}static intmodel_i960KA_remo2 (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_emul2.f const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg); const IDESC * UNUSED idesc = abuf->idesc; int cycles = 0; { int referenced = 0; int UNUSED insn_referenced = abuf->written; cycles += i960base_model_i960KA_u_exec (current_cpu, idesc, 0, referenced); } return cycles;#undef FLD}static intmodel_i960KA_remo3 (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_emul3.f const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg); const IDESC * UNUSED idesc = abuf->idesc; int cycles = 0; { int referenced = 0; int UNUSED insn_referenced = abuf->written; cycles += i960base_model_i960KA_u_exec (current_cpu, idesc, 0, referenced); } return cycles;#undef FLD}static intmodel_i960KA_divo (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_emul.f const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg); const IDESC * UNUSED idesc = abuf->idesc; int cycles = 0; { int referenced = 0; int UNUSED insn_referenced = abuf->written; cycles += i960base_model_i960KA_u_exec (current_cpu, idesc, 0, referenced); } return cycles;#undef FLD}static intmodel_i960KA_divo1 (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_emul1.f const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg); const IDESC * UNUSED idesc = abuf->idesc; int cycles = 0; { int referenced = 0; int UNUSED insn_referenced = abuf->written; cycles += i960base_model_i960KA_u_exec (current_cpu, idesc, 0, referenced); } return cycles;#undef FLD}static intmodel_i960KA_divo2 (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_emul2.f const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg); const IDESC * UNUSED idesc = abuf->idesc; int cycles = 0; { int referenced = 0; int UNUSED insn_referenced = abuf->written; cycles += i960base_model_i960KA_u_exec (current_cpu, idesc, 0, referenced); } return cycles;#undef FLD}static intmodel_i960KA_divo3 (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_emul3.f const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg); const IDESC * UNUSED idesc = abuf->idesc; int cycles = 0; { int referenced = 0; int UNUSED insn_referenced = abuf->written; cycles += i960base_model_i960KA_u_exec (current_cpu, idesc, 0, referenced); } return cycles;#undef FLD}static intmodel_i960KA_remi (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_emul.f const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg); const IDESC * UNUSED idesc = abuf->idesc; int cycles = 0; { int referenced = 0; int UNUSED insn_referenced = abuf->written; cycles += i960base_model_i960KA_u_exec (current_cpu, idesc, 0, referenced); } return cycles;#undef FLD}static intmodel_i960KA_remi1 (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_emul1.f const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg); const IDESC * UNUSED idesc = abuf->idesc; int cycles = 0; { int referenced = 0; int UNUSED insn_referenced = abuf->written; cycles += i960base_model_i960KA_u_exec (current_cpu, idesc, 0, referenced); } return cycles;#undef FLD}static intmodel_i960KA_remi2 (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_emul2.f const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg); const IDESC * UNUSED idesc = abuf->idesc; int cycles = 0; { int referenced = 0; int UNUSED insn_referenced = abuf->written; cycles += i960base_model_i960KA_u_exec (current_cpu, idesc, 0, referenced); } return cycles;#undef FLD}static intmodel_i960KA_remi3 (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_emul3.f const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg); const IDESC * UNUSED idesc = abuf->idesc; int cycles = 0; { int referenced = 0; int UNUSED insn_referenced = abuf->written; cycles += i960base_model_i960KA_u_exec (current_cpu, idesc, 0, referenced); } return cycles;#undef FLD}static intmodel_i960KA_divi (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_emul.f const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg); const IDESC * UNUSED idesc = abuf->idesc; int cycles = 0; { int referenced = 0; int UNUSED insn_referenced = abuf->written; cycles += i960base_model_i960KA_u_exec (current_cpu, idesc, 0, referenced); } return cycles;#undef FLD}static intmodel_i960KA_divi1 (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_emul1.f const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg); const IDESC * UNUSED idesc = abuf->idesc; int cycles = 0; { int referenced = 0; int UNUSED insn_referenced = abuf->written; cycles += i960base_model_i960KA_u_exec (current_cpu, idesc, 0, referenced); } return cycles;#undef FLD}static intmodel_i960KA_divi2 (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_emul2.f const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg); const IDESC * UNUSED idesc = abuf->idesc; int cycles = 0; { int referenced = 0; int UNUSED insn_referenced = abuf->written; cycles += i960base_model_i960KA_u_exec (current_cpu, idesc, 0, referenced); } return cycles;#undef FLD}static intmodel_i960KA_divi3 (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_emul3.f const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg); const IDESC * UNUSED idesc = abuf->idesc; int cycles = 0; { int referenced = 0; int UNUSED insn_referenced = abuf->written; cycles += i960base_model_i960KA_u_exec (current_cpu, idesc, 0, referenced); } return cycles;#undef FLD}static intmodel_i960KA_addo (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_emul.f const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg); const IDESC * UNUSED idesc = abuf->idesc; int cycles = 0; { int referenced = 0; int UNUSED insn_referenced = abuf->written; cycles += i960base_model_i960KA_u_exec (current_cpu, idesc, 0, referenced); } return cycles;#undef FLD}static intmodel_i960KA_addo1 (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_emul1.f const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg); const IDESC * UNUSED idesc = abuf->idesc; int cycles = 0; { int referenced = 0; int UNUSED insn_referenced = abuf->written; cycles += i960base_model_i960KA_u_exec (current_cpu, idesc, 0, referenced); } return cycles;#undef FLD}static intmodel_i960KA_addo2 (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_emul2.f const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg); const IDESC * UNUSED idesc = abuf->idesc; int cycles = 0; { int referenced = 0; int UNUSED insn_referenced = abuf->written; cycles += i960base_model_i960KA_u_exec (current_cpu, idesc, 0, referenced); } return cycles;#undef FLD}static intmodel_i960KA_addo3 (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_emul3.f const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg); const IDESC * UNUSED idesc = abuf->idesc; int cycles = 0; { int referenced = 0; int UNUSED insn_referenced = abuf->written; cycles += i960base_model_i960KA_u_exec (current_cpu, idesc, 0, referenced); } return cycles;#undef FLD}static intmodel_i960KA_subo (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_emul.f const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg); const IDESC * UNUSED idesc = abuf->idesc; int cycles = 0; { int referenced = 0; int UNUSED insn_referenced = abuf->written; cycles += i960base_model_i960KA_u_exec (current_cpu, idesc, 0, referenced); } return cycles;#undef FLD}static intmodel_i960KA_subo1 (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_emul1.f const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg); const IDESC * UNUSED idesc = abuf->idesc; int cycles = 0; { int referenced = 0; int UNUSED insn_referenced = abuf->written; cycles += i960base_model_i960KA_u_exec (current_cpu, idesc, 0, referenced); } return cycles;#undef FLD}static intmodel_i960KA_subo2 (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_emul2.f const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg); const IDESC * UNUSED idesc = abuf->idesc; int cycles = 0; { int referenced = 0; int UNUSED insn_referenced = abuf->written; cycles += i960base_model_i960KA_u_exec (current_cpu, idesc, 0, referenced); } return cycles;#undef FLD}static intmodel_i960KA_subo3 (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_emul3.f const ARGBUF * UNUSED abuf = SEM_ARGBUF ((SEM_ARG) sem_arg); const IDESC * UNUSED idesc = abuf->idesc; int cycles = 0; { int referenced = 0; int UNUSED insn_referenced = abuf->written; cycles += i960base_model_i960KA_u_exec (current_cpu, idesc, 0, referenced); } return cycles;#undef FLD
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -