📄 model.c
字号:
int referenced = 0; int UNUSED insn_referenced = abuf->written; INT in_sr = -1; INT in_dr = -1; INT out_dr = -1; in_sr = FLD (in_sr); out_dr = FLD (out_dr); referenced |= 1 << 0; referenced |= 1 << 2; cycles += m32rbf_model_m32r_d_u_exec (current_cpu, idesc, 0, referenced, in_sr, in_dr, out_dr); } return cycles;#undef FLD}static intmodel_m32r_d_srli (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_slli.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; INT in_sr = -1; INT in_dr = -1; INT out_dr = -1; in_dr = FLD (in_dr); out_dr = FLD (out_dr); referenced |= 1 << 1; referenced |= 1 << 2; cycles += m32rbf_model_m32r_d_u_exec (current_cpu, idesc, 0, referenced, in_sr, in_dr, out_dr); } return cycles;#undef FLD}static intmodel_m32r_d_st (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_st_plus.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; INT in_src1 = 0; INT in_src2 = 0; in_src1 = FLD (in_src1); in_src2 = FLD (in_src2); referenced |= 1 << 0; referenced |= 1 << 1; cycles += m32rbf_model_m32r_d_u_store (current_cpu, idesc, 0, referenced, in_src1, in_src2); } return cycles;#undef FLD}static intmodel_m32r_d_st_d (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_st_d.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; INT in_src1 = 0; INT in_src2 = 0; in_src1 = FLD (in_src1); in_src2 = FLD (in_src2); referenced |= 1 << 0; referenced |= 1 << 1; cycles += m32rbf_model_m32r_d_u_store (current_cpu, idesc, 0, referenced, in_src1, in_src2); } return cycles;#undef FLD}static intmodel_m32r_d_stb (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_st_plus.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; INT in_src1 = 0; INT in_src2 = 0; in_src1 = FLD (in_src1); in_src2 = FLD (in_src2); referenced |= 1 << 0; referenced |= 1 << 1; cycles += m32rbf_model_m32r_d_u_store (current_cpu, idesc, 0, referenced, in_src1, in_src2); } return cycles;#undef FLD}static intmodel_m32r_d_stb_d (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_st_d.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; INT in_src1 = 0; INT in_src2 = 0; in_src1 = FLD (in_src1); in_src2 = FLD (in_src2); referenced |= 1 << 0; referenced |= 1 << 1; cycles += m32rbf_model_m32r_d_u_store (current_cpu, idesc, 0, referenced, in_src1, in_src2); } return cycles;#undef FLD}static intmodel_m32r_d_sth (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_st_plus.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; INT in_src1 = 0; INT in_src2 = 0; in_src1 = FLD (in_src1); in_src2 = FLD (in_src2); referenced |= 1 << 0; referenced |= 1 << 1; cycles += m32rbf_model_m32r_d_u_store (current_cpu, idesc, 0, referenced, in_src1, in_src2); } return cycles;#undef FLD}static intmodel_m32r_d_sth_d (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_st_d.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; INT in_src1 = 0; INT in_src2 = 0; in_src1 = FLD (in_src1); in_src2 = FLD (in_src2); referenced |= 1 << 0; referenced |= 1 << 1; cycles += m32rbf_model_m32r_d_u_store (current_cpu, idesc, 0, referenced, in_src1, in_src2); } return cycles;#undef FLD}static intmodel_m32r_d_st_plus (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_st_plus.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; INT in_src1 = 0; INT in_src2 = 0; in_src1 = FLD (in_src1); in_src2 = FLD (in_src2); referenced |= 1 << 0; referenced |= 1 << 1; cycles += m32rbf_model_m32r_d_u_store (current_cpu, idesc, 0, referenced, in_src1, in_src2); } { int referenced = 0; int UNUSED insn_referenced = abuf->written; INT in_sr = -1; INT in_dr = -1; INT out_dr = -1; in_dr = FLD (in_src2); out_dr = FLD (out_src2); cycles += m32rbf_model_m32r_d_u_exec (current_cpu, idesc, 1, referenced, in_sr, in_dr, out_dr); } return cycles;#undef FLD}static intmodel_m32r_d_st_minus (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_st_plus.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; INT in_src1 = 0; INT in_src2 = 0; in_src1 = FLD (in_src1); in_src2 = FLD (in_src2); referenced |= 1 << 0; referenced |= 1 << 1; cycles += m32rbf_model_m32r_d_u_store (current_cpu, idesc, 0, referenced, in_src1, in_src2); } { int referenced = 0; int UNUSED insn_referenced = abuf->written; INT in_sr = -1; INT in_dr = -1; INT out_dr = -1; in_dr = FLD (in_src2); out_dr = FLD (out_src2); cycles += m32rbf_model_m32r_d_u_exec (current_cpu, idesc, 1, referenced, in_sr, in_dr, out_dr); } return cycles;#undef FLD}static intmodel_m32r_d_sub (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_add.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; INT in_sr = -1; INT in_dr = -1; INT out_dr = -1; in_sr = FLD (in_sr); in_dr = FLD (in_dr); out_dr = FLD (out_dr); referenced |= 1 << 0; referenced |= 1 << 1; referenced |= 1 << 2; cycles += m32rbf_model_m32r_d_u_exec (current_cpu, idesc, 0, referenced, in_sr, in_dr, out_dr); } return cycles;#undef FLD}static intmodel_m32r_d_subv (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_add.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; INT in_sr = -1; INT in_dr = -1; INT out_dr = -1; in_sr = FLD (in_sr); in_dr = FLD (in_dr); out_dr = FLD (out_dr); referenced |= 1 << 0; referenced |= 1 << 1; referenced |= 1 << 2; cycles += m32rbf_model_m32r_d_u_exec (current_cpu, idesc, 0, referenced, in_sr, in_dr, out_dr); } return cycles;#undef FLD}static intmodel_m32r_d_subx (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_add.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; INT in_sr = -1; INT in_dr = -1; INT out_dr = -1; in_sr = FLD (in_sr); in_dr = FLD (in_dr); out_dr = FLD (out_dr); referenced |= 1 << 0; referenced |= 1 << 1; referenced |= 1 << 2; cycles += m32rbf_model_m32r_d_u_exec (current_cpu, idesc, 0, referenced, in_sr, in_dr, out_dr); } return cycles;#undef FLD}static intmodel_m32r_d_trap (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_trap.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; INT in_sr = -1; INT in_dr = -1; INT out_dr = -1; cycles += m32rbf_model_m32r_d_u_exec (current_cpu, idesc, 0, referenced, in_sr, in_dr, out_dr); } return cycles;#undef FLD}static intmodel_m32r_d_unlock (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_st_plus.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; INT in_sr = 0; INT out_dr = 0; cycles += m32rbf_model_m32r_d_u_load (current_cpu, idesc, 0, referenced, in_sr, out_dr); } return cycles;#undef FLD}static intmodel_m32r_d_clrpsw (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_clrpsw.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; INT in_sr = -1; INT in_dr = -1; INT out_dr = -1; cycles += m32rbf_model_m32r_d_u_exec (current_cpu, idesc, 0, referenced, in_sr, in_dr, out_dr); } return cycles;#undef FLD}static intmodel_m32r_d_setpsw (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_clrpsw.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; INT in_sr = -1; INT in_dr = -1; INT out_dr = -1; cycles += m32rbf_model_m32r_d_u_exec (current_cpu, idesc, 0, referenced, in_sr, in_dr, out_dr); } return cycles;#undef FLD}static intmodel_m32r_d_bset (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_bset.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; INT in_sr = -1; INT in_dr = -1; INT out_dr = -1; in_sr = FLD (in_sr); referenced |= 1 << 0; cycles += m32rbf_model_m32r_d_u_exec (current_cpu, idesc, 0, referenced, in_sr, in_dr, out_dr); } return cycles;#undef FLD}static intmodel_m32r_d_bclr (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_bset.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; INT in_sr = -1; INT in_dr = -1; INT out_dr = -1; in_sr = FLD (in_sr); referenced |= 1 << 0; cycles += m32rbf_model_m32r_d_u_exec (current_cpu, idesc, 0, referenced, in_sr, in_dr, out_dr); } return cycles;#undef FLD}static intmodel_m32r_d_btst (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_bset.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; INT in_sr = -1; INT in_dr = -1; INT out_dr = -1; in_sr = FLD (in_sr); referenced |= 1 << 0; cycles += m32rbf_model_m32r_d_u_exec (current_cpu, idesc, 0, referenced, in_sr, in_dr, out_dr); } return cycles;#undef FLD}static intmodel_test_add (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_add.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 += m32rbf_model_test_u_exec (current_cpu, idesc, 0, referenced); } return cycles;#undef FLD}static intmodel_test_add3 (SIM_CPU *current_cpu, void *sem_arg){#define FLD(f) abuf->fields.sfmt_add3.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 += m32rbf_model_test_u_exec (current_cpu, idesc, 0, referenced); } return cycles;#undef FLD}static intmodel_test_and (SIM_CPU *current_cpu, void *sem
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -