1 /* Simulator model support for iq2000bf.
3 THIS FILE IS MACHINE GENERATED WITH CGEN.
5 Copyright (C) 1996-2024 Free Software Foundation, Inc.
7 This file is part of the GNU simulators.
9 This file is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 3, or (at your option)
14 It is distributed in the hope that it will be useful, but WITHOUT
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
17 License for more details.
19 You should have received a copy of the GNU General Public License along
20 with this program; if not, write to the Free Software Foundation, Inc.,
21 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
25 #define WANT_CPU iq2000bf
26 #define WANT_CPU_IQ2000BF
30 /* The profiling data is recorded here, but is accessed via the profiling
31 mechanism. After all, this is information for profiling. */
33 #if WITH_PROFILE_MODEL_P
35 /* Model handlers for each insn. */
38 model_iq2000_add (SIM_CPU
*current_cpu
, void *sem_arg
)
40 #define FLD(f) abuf->fields.sfmt_mrgb.f
41 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
42 const IDESC
* UNUSED idesc
= abuf
->idesc
;
46 int UNUSED insn_referenced
= abuf
->written
;
47 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
54 model_iq2000_addi (SIM_CPU
*current_cpu
, void *sem_arg
)
56 #define FLD(f) abuf->fields.sfmt_addi.f
57 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
58 const IDESC
* UNUSED idesc
= abuf
->idesc
;
62 int UNUSED insn_referenced
= abuf
->written
;
63 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
70 model_iq2000_addiu (SIM_CPU
*current_cpu
, void *sem_arg
)
72 #define FLD(f) abuf->fields.sfmt_addi.f
73 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
74 const IDESC
* UNUSED idesc
= abuf
->idesc
;
78 int UNUSED insn_referenced
= abuf
->written
;
79 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
86 model_iq2000_addu (SIM_CPU
*current_cpu
, void *sem_arg
)
88 #define FLD(f) abuf->fields.sfmt_mrgb.f
89 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
90 const IDESC
* UNUSED idesc
= abuf
->idesc
;
94 int UNUSED insn_referenced
= abuf
->written
;
95 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
102 model_iq2000_ado16 (SIM_CPU
*current_cpu
, void *sem_arg
)
104 #define FLD(f) abuf->fields.sfmt_mrgb.f
105 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
106 const IDESC
* UNUSED idesc
= abuf
->idesc
;
110 int UNUSED insn_referenced
= abuf
->written
;
111 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
118 model_iq2000_and (SIM_CPU
*current_cpu
, void *sem_arg
)
120 #define FLD(f) abuf->fields.sfmt_mrgb.f
121 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
122 const IDESC
* UNUSED idesc
= abuf
->idesc
;
126 int UNUSED insn_referenced
= abuf
->written
;
127 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
134 model_iq2000_andi (SIM_CPU
*current_cpu
, void *sem_arg
)
136 #define FLD(f) abuf->fields.sfmt_addi.f
137 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
138 const IDESC
* UNUSED idesc
= abuf
->idesc
;
142 int UNUSED insn_referenced
= abuf
->written
;
143 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
150 model_iq2000_andoi (SIM_CPU
*current_cpu
, void *sem_arg
)
152 #define FLD(f) abuf->fields.sfmt_addi.f
153 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
154 const IDESC
* UNUSED idesc
= abuf
->idesc
;
158 int UNUSED insn_referenced
= abuf
->written
;
159 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
166 model_iq2000_nor (SIM_CPU
*current_cpu
, void *sem_arg
)
168 #define FLD(f) abuf->fields.sfmt_mrgb.f
169 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
170 const IDESC
* UNUSED idesc
= abuf
->idesc
;
174 int UNUSED insn_referenced
= abuf
->written
;
175 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
182 model_iq2000_or (SIM_CPU
*current_cpu
, void *sem_arg
)
184 #define FLD(f) abuf->fields.sfmt_mrgb.f
185 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
186 const IDESC
* UNUSED idesc
= abuf
->idesc
;
190 int UNUSED insn_referenced
= abuf
->written
;
191 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
198 model_iq2000_ori (SIM_CPU
*current_cpu
, void *sem_arg
)
200 #define FLD(f) abuf->fields.sfmt_addi.f
201 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
202 const IDESC
* UNUSED idesc
= abuf
->idesc
;
206 int UNUSED insn_referenced
= abuf
->written
;
207 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
214 model_iq2000_ram (SIM_CPU
*current_cpu
, void *sem_arg
)
216 #define FLD(f) abuf->fields.sfmt_ram.f
217 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
218 const IDESC
* UNUSED idesc
= abuf
->idesc
;
222 int UNUSED insn_referenced
= abuf
->written
;
223 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
230 model_iq2000_sll (SIM_CPU
*current_cpu
, void *sem_arg
)
232 #define FLD(f) abuf->fields.sfmt_ram.f
233 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
234 const IDESC
* UNUSED idesc
= abuf
->idesc
;
238 int UNUSED insn_referenced
= abuf
->written
;
239 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
246 model_iq2000_sllv (SIM_CPU
*current_cpu
, void *sem_arg
)
248 #define FLD(f) abuf->fields.sfmt_mrgb.f
249 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
250 const IDESC
* UNUSED idesc
= abuf
->idesc
;
254 int UNUSED insn_referenced
= abuf
->written
;
255 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
262 model_iq2000_slmv (SIM_CPU
*current_cpu
, void *sem_arg
)
264 #define FLD(f) abuf->fields.sfmt_ram.f
265 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
266 const IDESC
* UNUSED idesc
= abuf
->idesc
;
270 int UNUSED insn_referenced
= abuf
->written
;
271 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
278 model_iq2000_slt (SIM_CPU
*current_cpu
, void *sem_arg
)
280 #define FLD(f) abuf->fields.sfmt_mrgb.f
281 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
282 const IDESC
* UNUSED idesc
= abuf
->idesc
;
286 int UNUSED insn_referenced
= abuf
->written
;
287 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
294 model_iq2000_slti (SIM_CPU
*current_cpu
, void *sem_arg
)
296 #define FLD(f) abuf->fields.sfmt_addi.f
297 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
298 const IDESC
* UNUSED idesc
= abuf
->idesc
;
302 int UNUSED insn_referenced
= abuf
->written
;
303 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
310 model_iq2000_sltiu (SIM_CPU
*current_cpu
, void *sem_arg
)
312 #define FLD(f) abuf->fields.sfmt_addi.f
313 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
314 const IDESC
* UNUSED idesc
= abuf
->idesc
;
318 int UNUSED insn_referenced
= abuf
->written
;
319 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
326 model_iq2000_sltu (SIM_CPU
*current_cpu
, void *sem_arg
)
328 #define FLD(f) abuf->fields.sfmt_mrgb.f
329 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
330 const IDESC
* UNUSED idesc
= abuf
->idesc
;
334 int UNUSED insn_referenced
= abuf
->written
;
335 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
342 model_iq2000_sra (SIM_CPU
*current_cpu
, void *sem_arg
)
344 #define FLD(f) abuf->fields.sfmt_ram.f
345 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
346 const IDESC
* UNUSED idesc
= abuf
->idesc
;
350 int UNUSED insn_referenced
= abuf
->written
;
351 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
358 model_iq2000_srav (SIM_CPU
*current_cpu
, void *sem_arg
)
360 #define FLD(f) abuf->fields.sfmt_mrgb.f
361 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
362 const IDESC
* UNUSED idesc
= abuf
->idesc
;
366 int UNUSED insn_referenced
= abuf
->written
;
367 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
374 model_iq2000_srl (SIM_CPU
*current_cpu
, void *sem_arg
)
376 #define FLD(f) abuf->fields.sfmt_ram.f
377 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
378 const IDESC
* UNUSED idesc
= abuf
->idesc
;
382 int UNUSED insn_referenced
= abuf
->written
;
383 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
390 model_iq2000_srlv (SIM_CPU
*current_cpu
, void *sem_arg
)
392 #define FLD(f) abuf->fields.sfmt_mrgb.f
393 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
394 const IDESC
* UNUSED idesc
= abuf
->idesc
;
398 int UNUSED insn_referenced
= abuf
->written
;
399 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
406 model_iq2000_srmv (SIM_CPU
*current_cpu
, void *sem_arg
)
408 #define FLD(f) abuf->fields.sfmt_ram.f
409 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
410 const IDESC
* UNUSED idesc
= abuf
->idesc
;
414 int UNUSED insn_referenced
= abuf
->written
;
415 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
422 model_iq2000_sub (SIM_CPU
*current_cpu
, void *sem_arg
)
424 #define FLD(f) abuf->fields.sfmt_mrgb.f
425 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
426 const IDESC
* UNUSED idesc
= abuf
->idesc
;
430 int UNUSED insn_referenced
= abuf
->written
;
431 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
438 model_iq2000_subu (SIM_CPU
*current_cpu
, void *sem_arg
)
440 #define FLD(f) abuf->fields.sfmt_mrgb.f
441 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
442 const IDESC
* UNUSED idesc
= abuf
->idesc
;
446 int UNUSED insn_referenced
= abuf
->written
;
447 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
454 model_iq2000_xor (SIM_CPU
*current_cpu
, void *sem_arg
)
456 #define FLD(f) abuf->fields.sfmt_mrgb.f
457 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
458 const IDESC
* UNUSED idesc
= abuf
->idesc
;
462 int UNUSED insn_referenced
= abuf
->written
;
463 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
470 model_iq2000_xori (SIM_CPU
*current_cpu
, void *sem_arg
)
472 #define FLD(f) abuf->fields.sfmt_addi.f
473 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
474 const IDESC
* UNUSED idesc
= abuf
->idesc
;
478 int UNUSED insn_referenced
= abuf
->written
;
479 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
486 model_iq2000_bbi (SIM_CPU
*current_cpu
, void *sem_arg
)
488 #define FLD(f) abuf->fields.sfmt_bbi.f
489 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
490 const IDESC
* UNUSED idesc
= abuf
->idesc
;
494 int UNUSED insn_referenced
= abuf
->written
;
495 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
502 model_iq2000_bbin (SIM_CPU
*current_cpu
, void *sem_arg
)
504 #define FLD(f) abuf->fields.sfmt_bbi.f
505 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
506 const IDESC
* UNUSED idesc
= abuf
->idesc
;
510 int UNUSED insn_referenced
= abuf
->written
;
511 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
518 model_iq2000_bbv (SIM_CPU
*current_cpu
, void *sem_arg
)
520 #define FLD(f) abuf->fields.sfmt_bbi.f
521 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
522 const IDESC
* UNUSED idesc
= abuf
->idesc
;
526 int UNUSED insn_referenced
= abuf
->written
;
527 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
534 model_iq2000_bbvn (SIM_CPU
*current_cpu
, void *sem_arg
)
536 #define FLD(f) abuf->fields.sfmt_bbi.f
537 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
538 const IDESC
* UNUSED idesc
= abuf
->idesc
;
542 int UNUSED insn_referenced
= abuf
->written
;
543 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
550 model_iq2000_beq (SIM_CPU
*current_cpu
, void *sem_arg
)
552 #define FLD(f) abuf->fields.sfmt_bbi.f
553 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
554 const IDESC
* UNUSED idesc
= abuf
->idesc
;
558 int UNUSED insn_referenced
= abuf
->written
;
559 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
566 model_iq2000_beql (SIM_CPU
*current_cpu
, void *sem_arg
)
568 #define FLD(f) abuf->fields.sfmt_bbi.f
569 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
570 const IDESC
* UNUSED idesc
= abuf
->idesc
;
574 int UNUSED insn_referenced
= abuf
->written
;
575 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
582 model_iq2000_bgez (SIM_CPU
*current_cpu
, void *sem_arg
)
584 #define FLD(f) abuf->fields.sfmt_bbi.f
585 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
586 const IDESC
* UNUSED idesc
= abuf
->idesc
;
590 int UNUSED insn_referenced
= abuf
->written
;
591 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
598 model_iq2000_bgezal (SIM_CPU
*current_cpu
, void *sem_arg
)
600 #define FLD(f) abuf->fields.sfmt_bbi.f
601 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
602 const IDESC
* UNUSED idesc
= abuf
->idesc
;
606 int UNUSED insn_referenced
= abuf
->written
;
607 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
614 model_iq2000_bgezall (SIM_CPU
*current_cpu
, void *sem_arg
)
616 #define FLD(f) abuf->fields.sfmt_bbi.f
617 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
618 const IDESC
* UNUSED idesc
= abuf
->idesc
;
622 int UNUSED insn_referenced
= abuf
->written
;
623 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
630 model_iq2000_bgezl (SIM_CPU
*current_cpu
, void *sem_arg
)
632 #define FLD(f) abuf->fields.sfmt_bbi.f
633 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
634 const IDESC
* UNUSED idesc
= abuf
->idesc
;
638 int UNUSED insn_referenced
= abuf
->written
;
639 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
646 model_iq2000_bltz (SIM_CPU
*current_cpu
, void *sem_arg
)
648 #define FLD(f) abuf->fields.sfmt_bbi.f
649 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
650 const IDESC
* UNUSED idesc
= abuf
->idesc
;
654 int UNUSED insn_referenced
= abuf
->written
;
655 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
662 model_iq2000_bltzl (SIM_CPU
*current_cpu
, void *sem_arg
)
664 #define FLD(f) abuf->fields.sfmt_bbi.f
665 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
666 const IDESC
* UNUSED idesc
= abuf
->idesc
;
670 int UNUSED insn_referenced
= abuf
->written
;
671 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
678 model_iq2000_bltzal (SIM_CPU
*current_cpu
, void *sem_arg
)
680 #define FLD(f) abuf->fields.sfmt_bbi.f
681 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
682 const IDESC
* UNUSED idesc
= abuf
->idesc
;
686 int UNUSED insn_referenced
= abuf
->written
;
687 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
694 model_iq2000_bltzall (SIM_CPU
*current_cpu
, void *sem_arg
)
696 #define FLD(f) abuf->fields.sfmt_bbi.f
697 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
698 const IDESC
* UNUSED idesc
= abuf
->idesc
;
702 int UNUSED insn_referenced
= abuf
->written
;
703 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
710 model_iq2000_bmb0 (SIM_CPU
*current_cpu
, void *sem_arg
)
712 #define FLD(f) abuf->fields.sfmt_bbi.f
713 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
714 const IDESC
* UNUSED idesc
= abuf
->idesc
;
718 int UNUSED insn_referenced
= abuf
->written
;
719 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
726 model_iq2000_bmb1 (SIM_CPU
*current_cpu
, void *sem_arg
)
728 #define FLD(f) abuf->fields.sfmt_bbi.f
729 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
730 const IDESC
* UNUSED idesc
= abuf
->idesc
;
734 int UNUSED insn_referenced
= abuf
->written
;
735 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
742 model_iq2000_bmb2 (SIM_CPU
*current_cpu
, void *sem_arg
)
744 #define FLD(f) abuf->fields.sfmt_bbi.f
745 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
746 const IDESC
* UNUSED idesc
= abuf
->idesc
;
750 int UNUSED insn_referenced
= abuf
->written
;
751 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
758 model_iq2000_bmb3 (SIM_CPU
*current_cpu
, void *sem_arg
)
760 #define FLD(f) abuf->fields.sfmt_bbi.f
761 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
762 const IDESC
* UNUSED idesc
= abuf
->idesc
;
766 int UNUSED insn_referenced
= abuf
->written
;
767 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
774 model_iq2000_bne (SIM_CPU
*current_cpu
, void *sem_arg
)
776 #define FLD(f) abuf->fields.sfmt_bbi.f
777 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
778 const IDESC
* UNUSED idesc
= abuf
->idesc
;
782 int UNUSED insn_referenced
= abuf
->written
;
783 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
790 model_iq2000_bnel (SIM_CPU
*current_cpu
, void *sem_arg
)
792 #define FLD(f) abuf->fields.sfmt_bbi.f
793 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
794 const IDESC
* UNUSED idesc
= abuf
->idesc
;
798 int UNUSED insn_referenced
= abuf
->written
;
799 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
806 model_iq2000_jalr (SIM_CPU
*current_cpu
, void *sem_arg
)
808 #define FLD(f) abuf->fields.sfmt_mrgb.f
809 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
810 const IDESC
* UNUSED idesc
= abuf
->idesc
;
814 int UNUSED insn_referenced
= abuf
->written
;
815 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
822 model_iq2000_jr (SIM_CPU
*current_cpu
, void *sem_arg
)
824 #define FLD(f) abuf->fields.sfmt_bbi.f
825 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
826 const IDESC
* UNUSED idesc
= abuf
->idesc
;
830 int UNUSED insn_referenced
= abuf
->written
;
831 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
838 model_iq2000_lb (SIM_CPU
*current_cpu
, void *sem_arg
)
840 #define FLD(f) abuf->fields.sfmt_addi.f
841 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
842 const IDESC
* UNUSED idesc
= abuf
->idesc
;
846 int UNUSED insn_referenced
= abuf
->written
;
847 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
854 model_iq2000_lbu (SIM_CPU
*current_cpu
, void *sem_arg
)
856 #define FLD(f) abuf->fields.sfmt_addi.f
857 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
858 const IDESC
* UNUSED idesc
= abuf
->idesc
;
862 int UNUSED insn_referenced
= abuf
->written
;
863 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
870 model_iq2000_lh (SIM_CPU
*current_cpu
, void *sem_arg
)
872 #define FLD(f) abuf->fields.sfmt_addi.f
873 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
874 const IDESC
* UNUSED idesc
= abuf
->idesc
;
878 int UNUSED insn_referenced
= abuf
->written
;
879 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
886 model_iq2000_lhu (SIM_CPU
*current_cpu
, void *sem_arg
)
888 #define FLD(f) abuf->fields.sfmt_addi.f
889 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
890 const IDESC
* UNUSED idesc
= abuf
->idesc
;
894 int UNUSED insn_referenced
= abuf
->written
;
895 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
902 model_iq2000_lui (SIM_CPU
*current_cpu
, void *sem_arg
)
904 #define FLD(f) abuf->fields.sfmt_addi.f
905 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
906 const IDESC
* UNUSED idesc
= abuf
->idesc
;
910 int UNUSED insn_referenced
= abuf
->written
;
911 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
918 model_iq2000_lw (SIM_CPU
*current_cpu
, void *sem_arg
)
920 #define FLD(f) abuf->fields.sfmt_addi.f
921 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
922 const IDESC
* UNUSED idesc
= abuf
->idesc
;
926 int UNUSED insn_referenced
= abuf
->written
;
927 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
934 model_iq2000_sb (SIM_CPU
*current_cpu
, void *sem_arg
)
936 #define FLD(f) abuf->fields.sfmt_addi.f
937 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
938 const IDESC
* UNUSED idesc
= abuf
->idesc
;
942 int UNUSED insn_referenced
= abuf
->written
;
943 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
950 model_iq2000_sh (SIM_CPU
*current_cpu
, void *sem_arg
)
952 #define FLD(f) abuf->fields.sfmt_addi.f
953 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
954 const IDESC
* UNUSED idesc
= abuf
->idesc
;
958 int UNUSED insn_referenced
= abuf
->written
;
959 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
966 model_iq2000_sw (SIM_CPU
*current_cpu
, void *sem_arg
)
968 #define FLD(f) abuf->fields.sfmt_addi.f
969 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
970 const IDESC
* UNUSED idesc
= abuf
->idesc
;
974 int UNUSED insn_referenced
= abuf
->written
;
975 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
982 model_iq2000_break (SIM_CPU
*current_cpu
, void *sem_arg
)
984 #define FLD(f) abuf->fields.sfmt_empty.f
985 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
986 const IDESC
* UNUSED idesc
= abuf
->idesc
;
990 int UNUSED insn_referenced
= abuf
->written
;
991 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
998 model_iq2000_syscall (SIM_CPU
*current_cpu
, void *sem_arg
)
1000 #define FLD(f) abuf->fields.sfmt_empty.f
1001 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1002 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1006 int UNUSED insn_referenced
= abuf
->written
;
1007 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1014 model_iq2000_andoui (SIM_CPU
*current_cpu
, void *sem_arg
)
1016 #define FLD(f) abuf->fields.sfmt_addi.f
1017 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1018 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1022 int UNUSED insn_referenced
= abuf
->written
;
1023 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1030 model_iq2000_orui (SIM_CPU
*current_cpu
, void *sem_arg
)
1032 #define FLD(f) abuf->fields.sfmt_addi.f
1033 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1034 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1038 int UNUSED insn_referenced
= abuf
->written
;
1039 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1046 model_iq2000_bgtz (SIM_CPU
*current_cpu
, void *sem_arg
)
1048 #define FLD(f) abuf->fields.sfmt_bbi.f
1049 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1050 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1054 int UNUSED insn_referenced
= abuf
->written
;
1055 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1062 model_iq2000_bgtzl (SIM_CPU
*current_cpu
, void *sem_arg
)
1064 #define FLD(f) abuf->fields.sfmt_bbi.f
1065 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1066 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1070 int UNUSED insn_referenced
= abuf
->written
;
1071 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1078 model_iq2000_blez (SIM_CPU
*current_cpu
, void *sem_arg
)
1080 #define FLD(f) abuf->fields.sfmt_bbi.f
1081 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1082 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1086 int UNUSED insn_referenced
= abuf
->written
;
1087 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1094 model_iq2000_blezl (SIM_CPU
*current_cpu
, void *sem_arg
)
1096 #define FLD(f) abuf->fields.sfmt_bbi.f
1097 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1098 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1102 int UNUSED insn_referenced
= abuf
->written
;
1103 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1110 model_iq2000_mrgb (SIM_CPU
*current_cpu
, void *sem_arg
)
1112 #define FLD(f) abuf->fields.sfmt_mrgb.f
1113 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1114 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1118 int UNUSED insn_referenced
= abuf
->written
;
1119 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1126 model_iq2000_bctxt (SIM_CPU
*current_cpu
, void *sem_arg
)
1128 #define FLD(f) abuf->fields.sfmt_empty.f
1129 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1130 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1134 int UNUSED insn_referenced
= abuf
->written
;
1135 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1142 model_iq2000_bc0f (SIM_CPU
*current_cpu
, void *sem_arg
)
1144 #define FLD(f) abuf->fields.sfmt_empty.f
1145 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1146 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1150 int UNUSED insn_referenced
= abuf
->written
;
1151 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1158 model_iq2000_bc0fl (SIM_CPU
*current_cpu
, void *sem_arg
)
1160 #define FLD(f) abuf->fields.sfmt_empty.f
1161 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1162 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1166 int UNUSED insn_referenced
= abuf
->written
;
1167 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1174 model_iq2000_bc3f (SIM_CPU
*current_cpu
, void *sem_arg
)
1176 #define FLD(f) abuf->fields.sfmt_empty.f
1177 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1178 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1182 int UNUSED insn_referenced
= abuf
->written
;
1183 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1190 model_iq2000_bc3fl (SIM_CPU
*current_cpu
, void *sem_arg
)
1192 #define FLD(f) abuf->fields.sfmt_empty.f
1193 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1194 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1198 int UNUSED insn_referenced
= abuf
->written
;
1199 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1206 model_iq2000_bc0t (SIM_CPU
*current_cpu
, void *sem_arg
)
1208 #define FLD(f) abuf->fields.sfmt_empty.f
1209 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1210 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1214 int UNUSED insn_referenced
= abuf
->written
;
1215 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1222 model_iq2000_bc0tl (SIM_CPU
*current_cpu
, void *sem_arg
)
1224 #define FLD(f) abuf->fields.sfmt_empty.f
1225 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1226 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1230 int UNUSED insn_referenced
= abuf
->written
;
1231 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1238 model_iq2000_bc3t (SIM_CPU
*current_cpu
, void *sem_arg
)
1240 #define FLD(f) abuf->fields.sfmt_empty.f
1241 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1242 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1246 int UNUSED insn_referenced
= abuf
->written
;
1247 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1254 model_iq2000_bc3tl (SIM_CPU
*current_cpu
, void *sem_arg
)
1256 #define FLD(f) abuf->fields.sfmt_empty.f
1257 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1258 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1262 int UNUSED insn_referenced
= abuf
->written
;
1263 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1270 model_iq2000_cfc0 (SIM_CPU
*current_cpu
, void *sem_arg
)
1272 #define FLD(f) abuf->fields.sfmt_empty.f
1273 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1274 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1278 int UNUSED insn_referenced
= abuf
->written
;
1279 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1286 model_iq2000_cfc1 (SIM_CPU
*current_cpu
, void *sem_arg
)
1288 #define FLD(f) abuf->fields.sfmt_empty.f
1289 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1290 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1294 int UNUSED insn_referenced
= abuf
->written
;
1295 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1302 model_iq2000_cfc2 (SIM_CPU
*current_cpu
, void *sem_arg
)
1304 #define FLD(f) abuf->fields.sfmt_empty.f
1305 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1306 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1310 int UNUSED insn_referenced
= abuf
->written
;
1311 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1318 model_iq2000_cfc3 (SIM_CPU
*current_cpu
, void *sem_arg
)
1320 #define FLD(f) abuf->fields.sfmt_empty.f
1321 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1322 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1326 int UNUSED insn_referenced
= abuf
->written
;
1327 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1334 model_iq2000_chkhdr (SIM_CPU
*current_cpu
, void *sem_arg
)
1336 #define FLD(f) abuf->fields.sfmt_empty.f
1337 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1338 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1342 int UNUSED insn_referenced
= abuf
->written
;
1343 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1350 model_iq2000_ctc0 (SIM_CPU
*current_cpu
, void *sem_arg
)
1352 #define FLD(f) abuf->fields.sfmt_empty.f
1353 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1354 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1358 int UNUSED insn_referenced
= abuf
->written
;
1359 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1366 model_iq2000_ctc1 (SIM_CPU
*current_cpu
, void *sem_arg
)
1368 #define FLD(f) abuf->fields.sfmt_empty.f
1369 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1370 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1374 int UNUSED insn_referenced
= abuf
->written
;
1375 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1382 model_iq2000_ctc2 (SIM_CPU
*current_cpu
, void *sem_arg
)
1384 #define FLD(f) abuf->fields.sfmt_empty.f
1385 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1386 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1390 int UNUSED insn_referenced
= abuf
->written
;
1391 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1398 model_iq2000_ctc3 (SIM_CPU
*current_cpu
, void *sem_arg
)
1400 #define FLD(f) abuf->fields.sfmt_empty.f
1401 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1402 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1406 int UNUSED insn_referenced
= abuf
->written
;
1407 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1414 model_iq2000_jcr (SIM_CPU
*current_cpu
, void *sem_arg
)
1416 #define FLD(f) abuf->fields.sfmt_empty.f
1417 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1418 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1422 int UNUSED insn_referenced
= abuf
->written
;
1423 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1430 model_iq2000_luc32 (SIM_CPU
*current_cpu
, void *sem_arg
)
1432 #define FLD(f) abuf->fields.sfmt_empty.f
1433 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1434 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1438 int UNUSED insn_referenced
= abuf
->written
;
1439 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1446 model_iq2000_luc32l (SIM_CPU
*current_cpu
, void *sem_arg
)
1448 #define FLD(f) abuf->fields.sfmt_empty.f
1449 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1450 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1454 int UNUSED insn_referenced
= abuf
->written
;
1455 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1462 model_iq2000_luc64 (SIM_CPU
*current_cpu
, void *sem_arg
)
1464 #define FLD(f) abuf->fields.sfmt_empty.f
1465 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1466 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1470 int UNUSED insn_referenced
= abuf
->written
;
1471 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1478 model_iq2000_luc64l (SIM_CPU
*current_cpu
, void *sem_arg
)
1480 #define FLD(f) abuf->fields.sfmt_empty.f
1481 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1482 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1486 int UNUSED insn_referenced
= abuf
->written
;
1487 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1494 model_iq2000_luk (SIM_CPU
*current_cpu
, void *sem_arg
)
1496 #define FLD(f) abuf->fields.sfmt_empty.f
1497 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1498 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1502 int UNUSED insn_referenced
= abuf
->written
;
1503 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1510 model_iq2000_lulck (SIM_CPU
*current_cpu
, void *sem_arg
)
1512 #define FLD(f) abuf->fields.sfmt_empty.f
1513 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1514 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1518 int UNUSED insn_referenced
= abuf
->written
;
1519 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1526 model_iq2000_lum32 (SIM_CPU
*current_cpu
, void *sem_arg
)
1528 #define FLD(f) abuf->fields.sfmt_empty.f
1529 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1530 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1534 int UNUSED insn_referenced
= abuf
->written
;
1535 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1542 model_iq2000_lum32l (SIM_CPU
*current_cpu
, void *sem_arg
)
1544 #define FLD(f) abuf->fields.sfmt_empty.f
1545 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1546 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1550 int UNUSED insn_referenced
= abuf
->written
;
1551 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1558 model_iq2000_lum64 (SIM_CPU
*current_cpu
, void *sem_arg
)
1560 #define FLD(f) abuf->fields.sfmt_empty.f
1561 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1562 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1566 int UNUSED insn_referenced
= abuf
->written
;
1567 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1574 model_iq2000_lum64l (SIM_CPU
*current_cpu
, void *sem_arg
)
1576 #define FLD(f) abuf->fields.sfmt_empty.f
1577 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1578 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1582 int UNUSED insn_referenced
= abuf
->written
;
1583 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1590 model_iq2000_lur (SIM_CPU
*current_cpu
, void *sem_arg
)
1592 #define FLD(f) abuf->fields.sfmt_empty.f
1593 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1594 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1598 int UNUSED insn_referenced
= abuf
->written
;
1599 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1606 model_iq2000_lurl (SIM_CPU
*current_cpu
, void *sem_arg
)
1608 #define FLD(f) abuf->fields.sfmt_empty.f
1609 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1610 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1614 int UNUSED insn_referenced
= abuf
->written
;
1615 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1622 model_iq2000_luulck (SIM_CPU
*current_cpu
, void *sem_arg
)
1624 #define FLD(f) abuf->fields.sfmt_empty.f
1625 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1626 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1630 int UNUSED insn_referenced
= abuf
->written
;
1631 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1638 model_iq2000_mfc0 (SIM_CPU
*current_cpu
, void *sem_arg
)
1640 #define FLD(f) abuf->fields.sfmt_empty.f
1641 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1642 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1646 int UNUSED insn_referenced
= abuf
->written
;
1647 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1654 model_iq2000_mfc1 (SIM_CPU
*current_cpu
, void *sem_arg
)
1656 #define FLD(f) abuf->fields.sfmt_empty.f
1657 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1658 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1662 int UNUSED insn_referenced
= abuf
->written
;
1663 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1670 model_iq2000_mfc2 (SIM_CPU
*current_cpu
, void *sem_arg
)
1672 #define FLD(f) abuf->fields.sfmt_empty.f
1673 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1674 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1678 int UNUSED insn_referenced
= abuf
->written
;
1679 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1686 model_iq2000_mfc3 (SIM_CPU
*current_cpu
, void *sem_arg
)
1688 #define FLD(f) abuf->fields.sfmt_empty.f
1689 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1690 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1694 int UNUSED insn_referenced
= abuf
->written
;
1695 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1702 model_iq2000_mtc0 (SIM_CPU
*current_cpu
, void *sem_arg
)
1704 #define FLD(f) abuf->fields.sfmt_empty.f
1705 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1706 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1710 int UNUSED insn_referenced
= abuf
->written
;
1711 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1718 model_iq2000_mtc1 (SIM_CPU
*current_cpu
, void *sem_arg
)
1720 #define FLD(f) abuf->fields.sfmt_empty.f
1721 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1722 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1726 int UNUSED insn_referenced
= abuf
->written
;
1727 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1734 model_iq2000_mtc2 (SIM_CPU
*current_cpu
, void *sem_arg
)
1736 #define FLD(f) abuf->fields.sfmt_empty.f
1737 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1738 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1742 int UNUSED insn_referenced
= abuf
->written
;
1743 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1750 model_iq2000_mtc3 (SIM_CPU
*current_cpu
, void *sem_arg
)
1752 #define FLD(f) abuf->fields.sfmt_empty.f
1753 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1754 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1758 int UNUSED insn_referenced
= abuf
->written
;
1759 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1766 model_iq2000_pkrl (SIM_CPU
*current_cpu
, void *sem_arg
)
1768 #define FLD(f) abuf->fields.sfmt_empty.f
1769 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1770 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1774 int UNUSED insn_referenced
= abuf
->written
;
1775 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1782 model_iq2000_pkrlr1 (SIM_CPU
*current_cpu
, void *sem_arg
)
1784 #define FLD(f) abuf->fields.sfmt_empty.f
1785 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1786 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1790 int UNUSED insn_referenced
= abuf
->written
;
1791 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1798 model_iq2000_pkrlr30 (SIM_CPU
*current_cpu
, void *sem_arg
)
1800 #define FLD(f) abuf->fields.sfmt_empty.f
1801 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1802 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1806 int UNUSED insn_referenced
= abuf
->written
;
1807 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1814 model_iq2000_rb (SIM_CPU
*current_cpu
, void *sem_arg
)
1816 #define FLD(f) abuf->fields.sfmt_empty.f
1817 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1818 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1822 int UNUSED insn_referenced
= abuf
->written
;
1823 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1830 model_iq2000_rbr1 (SIM_CPU
*current_cpu
, void *sem_arg
)
1832 #define FLD(f) abuf->fields.sfmt_empty.f
1833 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1834 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1838 int UNUSED insn_referenced
= abuf
->written
;
1839 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1846 model_iq2000_rbr30 (SIM_CPU
*current_cpu
, void *sem_arg
)
1848 #define FLD(f) abuf->fields.sfmt_empty.f
1849 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1850 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1854 int UNUSED insn_referenced
= abuf
->written
;
1855 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1862 model_iq2000_rfe (SIM_CPU
*current_cpu
, void *sem_arg
)
1864 #define FLD(f) abuf->fields.sfmt_empty.f
1865 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1866 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1870 int UNUSED insn_referenced
= abuf
->written
;
1871 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1878 model_iq2000_rx (SIM_CPU
*current_cpu
, void *sem_arg
)
1880 #define FLD(f) abuf->fields.sfmt_empty.f
1881 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1882 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1886 int UNUSED insn_referenced
= abuf
->written
;
1887 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1894 model_iq2000_rxr1 (SIM_CPU
*current_cpu
, void *sem_arg
)
1896 #define FLD(f) abuf->fields.sfmt_empty.f
1897 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1898 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1902 int UNUSED insn_referenced
= abuf
->written
;
1903 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1910 model_iq2000_rxr30 (SIM_CPU
*current_cpu
, void *sem_arg
)
1912 #define FLD(f) abuf->fields.sfmt_empty.f
1913 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1914 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1918 int UNUSED insn_referenced
= abuf
->written
;
1919 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1926 model_iq2000_sleep (SIM_CPU
*current_cpu
, void *sem_arg
)
1928 #define FLD(f) abuf->fields.sfmt_empty.f
1929 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1930 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1934 int UNUSED insn_referenced
= abuf
->written
;
1935 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1942 model_iq2000_srrd (SIM_CPU
*current_cpu
, void *sem_arg
)
1944 #define FLD(f) abuf->fields.sfmt_empty.f
1945 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1946 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1950 int UNUSED insn_referenced
= abuf
->written
;
1951 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1958 model_iq2000_srrdl (SIM_CPU
*current_cpu
, void *sem_arg
)
1960 #define FLD(f) abuf->fields.sfmt_empty.f
1961 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1962 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1966 int UNUSED insn_referenced
= abuf
->written
;
1967 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1974 model_iq2000_srulck (SIM_CPU
*current_cpu
, void *sem_arg
)
1976 #define FLD(f) abuf->fields.sfmt_empty.f
1977 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1978 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1982 int UNUSED insn_referenced
= abuf
->written
;
1983 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
1990 model_iq2000_srwr (SIM_CPU
*current_cpu
, void *sem_arg
)
1992 #define FLD(f) abuf->fields.sfmt_empty.f
1993 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
1994 const IDESC
* UNUSED idesc
= abuf
->idesc
;
1998 int UNUSED insn_referenced
= abuf
->written
;
1999 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
2006 model_iq2000_srwru (SIM_CPU
*current_cpu
, void *sem_arg
)
2008 #define FLD(f) abuf->fields.sfmt_empty.f
2009 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
2010 const IDESC
* UNUSED idesc
= abuf
->idesc
;
2014 int UNUSED insn_referenced
= abuf
->written
;
2015 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
2022 model_iq2000_trapqfl (SIM_CPU
*current_cpu
, void *sem_arg
)
2024 #define FLD(f) abuf->fields.sfmt_empty.f
2025 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
2026 const IDESC
* UNUSED idesc
= abuf
->idesc
;
2030 int UNUSED insn_referenced
= abuf
->written
;
2031 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
2038 model_iq2000_trapqne (SIM_CPU
*current_cpu
, void *sem_arg
)
2040 #define FLD(f) abuf->fields.sfmt_empty.f
2041 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
2042 const IDESC
* UNUSED idesc
= abuf
->idesc
;
2046 int UNUSED insn_referenced
= abuf
->written
;
2047 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
2054 model_iq2000_traprel (SIM_CPU
*current_cpu
, void *sem_arg
)
2056 #define FLD(f) abuf->fields.sfmt_empty.f
2057 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
2058 const IDESC
* UNUSED idesc
= abuf
->idesc
;
2062 int UNUSED insn_referenced
= abuf
->written
;
2063 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
2070 model_iq2000_wb (SIM_CPU
*current_cpu
, void *sem_arg
)
2072 #define FLD(f) abuf->fields.sfmt_empty.f
2073 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
2074 const IDESC
* UNUSED idesc
= abuf
->idesc
;
2078 int UNUSED insn_referenced
= abuf
->written
;
2079 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
2086 model_iq2000_wbu (SIM_CPU
*current_cpu
, void *sem_arg
)
2088 #define FLD(f) abuf->fields.sfmt_empty.f
2089 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
2090 const IDESC
* UNUSED idesc
= abuf
->idesc
;
2094 int UNUSED insn_referenced
= abuf
->written
;
2095 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
2102 model_iq2000_wbr1 (SIM_CPU
*current_cpu
, void *sem_arg
)
2104 #define FLD(f) abuf->fields.sfmt_empty.f
2105 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
2106 const IDESC
* UNUSED idesc
= abuf
->idesc
;
2110 int UNUSED insn_referenced
= abuf
->written
;
2111 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
2118 model_iq2000_wbr1u (SIM_CPU
*current_cpu
, void *sem_arg
)
2120 #define FLD(f) abuf->fields.sfmt_empty.f
2121 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
2122 const IDESC
* UNUSED idesc
= abuf
->idesc
;
2126 int UNUSED insn_referenced
= abuf
->written
;
2127 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
2134 model_iq2000_wbr30 (SIM_CPU
*current_cpu
, void *sem_arg
)
2136 #define FLD(f) abuf->fields.sfmt_empty.f
2137 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
2138 const IDESC
* UNUSED idesc
= abuf
->idesc
;
2142 int UNUSED insn_referenced
= abuf
->written
;
2143 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
2150 model_iq2000_wbr30u (SIM_CPU
*current_cpu
, void *sem_arg
)
2152 #define FLD(f) abuf->fields.sfmt_empty.f
2153 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
2154 const IDESC
* UNUSED idesc
= abuf
->idesc
;
2158 int UNUSED insn_referenced
= abuf
->written
;
2159 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
2166 model_iq2000_wx (SIM_CPU
*current_cpu
, void *sem_arg
)
2168 #define FLD(f) abuf->fields.sfmt_empty.f
2169 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
2170 const IDESC
* UNUSED idesc
= abuf
->idesc
;
2174 int UNUSED insn_referenced
= abuf
->written
;
2175 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
2182 model_iq2000_wxu (SIM_CPU
*current_cpu
, void *sem_arg
)
2184 #define FLD(f) abuf->fields.sfmt_empty.f
2185 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
2186 const IDESC
* UNUSED idesc
= abuf
->idesc
;
2190 int UNUSED insn_referenced
= abuf
->written
;
2191 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
2198 model_iq2000_wxr1 (SIM_CPU
*current_cpu
, void *sem_arg
)
2200 #define FLD(f) abuf->fields.sfmt_empty.f
2201 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
2202 const IDESC
* UNUSED idesc
= abuf
->idesc
;
2206 int UNUSED insn_referenced
= abuf
->written
;
2207 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
2214 model_iq2000_wxr1u (SIM_CPU
*current_cpu
, void *sem_arg
)
2216 #define FLD(f) abuf->fields.sfmt_empty.f
2217 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
2218 const IDESC
* UNUSED idesc
= abuf
->idesc
;
2222 int UNUSED insn_referenced
= abuf
->written
;
2223 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
2230 model_iq2000_wxr30 (SIM_CPU
*current_cpu
, void *sem_arg
)
2232 #define FLD(f) abuf->fields.sfmt_empty.f
2233 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
2234 const IDESC
* UNUSED idesc
= abuf
->idesc
;
2238 int UNUSED insn_referenced
= abuf
->written
;
2239 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
2246 model_iq2000_wxr30u (SIM_CPU
*current_cpu
, void *sem_arg
)
2248 #define FLD(f) abuf->fields.sfmt_empty.f
2249 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
2250 const IDESC
* UNUSED idesc
= abuf
->idesc
;
2254 int UNUSED insn_referenced
= abuf
->written
;
2255 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
2262 model_iq2000_ldw (SIM_CPU
*current_cpu
, void *sem_arg
)
2264 #define FLD(f) abuf->fields.sfmt_addi.f
2265 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
2266 const IDESC
* UNUSED idesc
= abuf
->idesc
;
2270 int UNUSED insn_referenced
= abuf
->written
;
2271 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
2278 model_iq2000_sdw (SIM_CPU
*current_cpu
, void *sem_arg
)
2280 #define FLD(f) abuf->fields.sfmt_addi.f
2281 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
2282 const IDESC
* UNUSED idesc
= abuf
->idesc
;
2286 int UNUSED insn_referenced
= abuf
->written
;
2287 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
2294 model_iq2000_j (SIM_CPU
*current_cpu
, void *sem_arg
)
2296 #define FLD(f) abuf->fields.sfmt_j.f
2297 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
2298 const IDESC
* UNUSED idesc
= abuf
->idesc
;
2302 int UNUSED insn_referenced
= abuf
->written
;
2303 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
2310 model_iq2000_jal (SIM_CPU
*current_cpu
, void *sem_arg
)
2312 #define FLD(f) abuf->fields.sfmt_j.f
2313 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
2314 const IDESC
* UNUSED idesc
= abuf
->idesc
;
2318 int UNUSED insn_referenced
= abuf
->written
;
2319 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
2326 model_iq2000_bmb (SIM_CPU
*current_cpu
, void *sem_arg
)
2328 #define FLD(f) abuf->fields.sfmt_bbi.f
2329 const ARGBUF
* UNUSED abuf
= SEM_ARGBUF ((SEM_ARG
) sem_arg
);
2330 const IDESC
* UNUSED idesc
= abuf
->idesc
;
2334 int UNUSED insn_referenced
= abuf
->written
;
2335 cycles
+= iq2000bf_model_iq2000_u_exec (current_cpu
, idesc
, 0, referenced
);
2341 /* We assume UNIT_NONE == 0 because the tables don't always terminate
2344 /* Model timing data for `iq2000'. */
2346 static const INSN_TIMING iq2000_timing
[] = {
2347 { IQ2000BF_INSN_X_INVALID
, 0, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2348 { IQ2000BF_INSN_X_AFTER
, 0, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2349 { IQ2000BF_INSN_X_BEFORE
, 0, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2350 { IQ2000BF_INSN_X_CTI_CHAIN
, 0, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2351 { IQ2000BF_INSN_X_CHAIN
, 0, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2352 { IQ2000BF_INSN_X_BEGIN
, 0, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2353 { IQ2000BF_INSN_ADD
, model_iq2000_add
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2354 { IQ2000BF_INSN_ADDI
, model_iq2000_addi
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2355 { IQ2000BF_INSN_ADDIU
, model_iq2000_addiu
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2356 { IQ2000BF_INSN_ADDU
, model_iq2000_addu
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2357 { IQ2000BF_INSN_ADO16
, model_iq2000_ado16
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2358 { IQ2000BF_INSN_AND
, model_iq2000_and
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2359 { IQ2000BF_INSN_ANDI
, model_iq2000_andi
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2360 { IQ2000BF_INSN_ANDOI
, model_iq2000_andoi
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2361 { IQ2000BF_INSN_NOR
, model_iq2000_nor
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2362 { IQ2000BF_INSN_OR
, model_iq2000_or
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2363 { IQ2000BF_INSN_ORI
, model_iq2000_ori
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2364 { IQ2000BF_INSN_RAM
, model_iq2000_ram
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2365 { IQ2000BF_INSN_SLL
, model_iq2000_sll
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2366 { IQ2000BF_INSN_SLLV
, model_iq2000_sllv
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2367 { IQ2000BF_INSN_SLMV
, model_iq2000_slmv
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2368 { IQ2000BF_INSN_SLT
, model_iq2000_slt
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2369 { IQ2000BF_INSN_SLTI
, model_iq2000_slti
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2370 { IQ2000BF_INSN_SLTIU
, model_iq2000_sltiu
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2371 { IQ2000BF_INSN_SLTU
, model_iq2000_sltu
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2372 { IQ2000BF_INSN_SRA
, model_iq2000_sra
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2373 { IQ2000BF_INSN_SRAV
, model_iq2000_srav
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2374 { IQ2000BF_INSN_SRL
, model_iq2000_srl
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2375 { IQ2000BF_INSN_SRLV
, model_iq2000_srlv
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2376 { IQ2000BF_INSN_SRMV
, model_iq2000_srmv
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2377 { IQ2000BF_INSN_SUB
, model_iq2000_sub
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2378 { IQ2000BF_INSN_SUBU
, model_iq2000_subu
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2379 { IQ2000BF_INSN_XOR
, model_iq2000_xor
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2380 { IQ2000BF_INSN_XORI
, model_iq2000_xori
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2381 { IQ2000BF_INSN_BBI
, model_iq2000_bbi
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2382 { IQ2000BF_INSN_BBIN
, model_iq2000_bbin
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2383 { IQ2000BF_INSN_BBV
, model_iq2000_bbv
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2384 { IQ2000BF_INSN_BBVN
, model_iq2000_bbvn
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2385 { IQ2000BF_INSN_BEQ
, model_iq2000_beq
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2386 { IQ2000BF_INSN_BEQL
, model_iq2000_beql
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2387 { IQ2000BF_INSN_BGEZ
, model_iq2000_bgez
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2388 { IQ2000BF_INSN_BGEZAL
, model_iq2000_bgezal
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2389 { IQ2000BF_INSN_BGEZALL
, model_iq2000_bgezall
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2390 { IQ2000BF_INSN_BGEZL
, model_iq2000_bgezl
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2391 { IQ2000BF_INSN_BLTZ
, model_iq2000_bltz
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2392 { IQ2000BF_INSN_BLTZL
, model_iq2000_bltzl
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2393 { IQ2000BF_INSN_BLTZAL
, model_iq2000_bltzal
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2394 { IQ2000BF_INSN_BLTZALL
, model_iq2000_bltzall
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2395 { IQ2000BF_INSN_BMB0
, model_iq2000_bmb0
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2396 { IQ2000BF_INSN_BMB1
, model_iq2000_bmb1
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2397 { IQ2000BF_INSN_BMB2
, model_iq2000_bmb2
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2398 { IQ2000BF_INSN_BMB3
, model_iq2000_bmb3
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2399 { IQ2000BF_INSN_BNE
, model_iq2000_bne
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2400 { IQ2000BF_INSN_BNEL
, model_iq2000_bnel
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2401 { IQ2000BF_INSN_JALR
, model_iq2000_jalr
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2402 { IQ2000BF_INSN_JR
, model_iq2000_jr
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2403 { IQ2000BF_INSN_LB
, model_iq2000_lb
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2404 { IQ2000BF_INSN_LBU
, model_iq2000_lbu
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2405 { IQ2000BF_INSN_LH
, model_iq2000_lh
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2406 { IQ2000BF_INSN_LHU
, model_iq2000_lhu
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2407 { IQ2000BF_INSN_LUI
, model_iq2000_lui
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2408 { IQ2000BF_INSN_LW
, model_iq2000_lw
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2409 { IQ2000BF_INSN_SB
, model_iq2000_sb
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2410 { IQ2000BF_INSN_SH
, model_iq2000_sh
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2411 { IQ2000BF_INSN_SW
, model_iq2000_sw
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2412 { IQ2000BF_INSN_BREAK
, model_iq2000_break
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2413 { IQ2000BF_INSN_SYSCALL
, model_iq2000_syscall
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2414 { IQ2000BF_INSN_ANDOUI
, model_iq2000_andoui
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2415 { IQ2000BF_INSN_ORUI
, model_iq2000_orui
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2416 { IQ2000BF_INSN_BGTZ
, model_iq2000_bgtz
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2417 { IQ2000BF_INSN_BGTZL
, model_iq2000_bgtzl
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2418 { IQ2000BF_INSN_BLEZ
, model_iq2000_blez
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2419 { IQ2000BF_INSN_BLEZL
, model_iq2000_blezl
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2420 { IQ2000BF_INSN_MRGB
, model_iq2000_mrgb
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2421 { IQ2000BF_INSN_BCTXT
, model_iq2000_bctxt
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2422 { IQ2000BF_INSN_BC0F
, model_iq2000_bc0f
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2423 { IQ2000BF_INSN_BC0FL
, model_iq2000_bc0fl
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2424 { IQ2000BF_INSN_BC3F
, model_iq2000_bc3f
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2425 { IQ2000BF_INSN_BC3FL
, model_iq2000_bc3fl
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2426 { IQ2000BF_INSN_BC0T
, model_iq2000_bc0t
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2427 { IQ2000BF_INSN_BC0TL
, model_iq2000_bc0tl
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2428 { IQ2000BF_INSN_BC3T
, model_iq2000_bc3t
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2429 { IQ2000BF_INSN_BC3TL
, model_iq2000_bc3tl
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2430 { IQ2000BF_INSN_CFC0
, model_iq2000_cfc0
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2431 { IQ2000BF_INSN_CFC1
, model_iq2000_cfc1
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2432 { IQ2000BF_INSN_CFC2
, model_iq2000_cfc2
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2433 { IQ2000BF_INSN_CFC3
, model_iq2000_cfc3
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2434 { IQ2000BF_INSN_CHKHDR
, model_iq2000_chkhdr
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2435 { IQ2000BF_INSN_CTC0
, model_iq2000_ctc0
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2436 { IQ2000BF_INSN_CTC1
, model_iq2000_ctc1
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2437 { IQ2000BF_INSN_CTC2
, model_iq2000_ctc2
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2438 { IQ2000BF_INSN_CTC3
, model_iq2000_ctc3
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2439 { IQ2000BF_INSN_JCR
, model_iq2000_jcr
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2440 { IQ2000BF_INSN_LUC32
, model_iq2000_luc32
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2441 { IQ2000BF_INSN_LUC32L
, model_iq2000_luc32l
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2442 { IQ2000BF_INSN_LUC64
, model_iq2000_luc64
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2443 { IQ2000BF_INSN_LUC64L
, model_iq2000_luc64l
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2444 { IQ2000BF_INSN_LUK
, model_iq2000_luk
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2445 { IQ2000BF_INSN_LULCK
, model_iq2000_lulck
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2446 { IQ2000BF_INSN_LUM32
, model_iq2000_lum32
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2447 { IQ2000BF_INSN_LUM32L
, model_iq2000_lum32l
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2448 { IQ2000BF_INSN_LUM64
, model_iq2000_lum64
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2449 { IQ2000BF_INSN_LUM64L
, model_iq2000_lum64l
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2450 { IQ2000BF_INSN_LUR
, model_iq2000_lur
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2451 { IQ2000BF_INSN_LURL
, model_iq2000_lurl
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2452 { IQ2000BF_INSN_LUULCK
, model_iq2000_luulck
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2453 { IQ2000BF_INSN_MFC0
, model_iq2000_mfc0
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2454 { IQ2000BF_INSN_MFC1
, model_iq2000_mfc1
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2455 { IQ2000BF_INSN_MFC2
, model_iq2000_mfc2
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2456 { IQ2000BF_INSN_MFC3
, model_iq2000_mfc3
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2457 { IQ2000BF_INSN_MTC0
, model_iq2000_mtc0
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2458 { IQ2000BF_INSN_MTC1
, model_iq2000_mtc1
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2459 { IQ2000BF_INSN_MTC2
, model_iq2000_mtc2
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2460 { IQ2000BF_INSN_MTC3
, model_iq2000_mtc3
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2461 { IQ2000BF_INSN_PKRL
, model_iq2000_pkrl
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2462 { IQ2000BF_INSN_PKRLR1
, model_iq2000_pkrlr1
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2463 { IQ2000BF_INSN_PKRLR30
, model_iq2000_pkrlr30
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2464 { IQ2000BF_INSN_RB
, model_iq2000_rb
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2465 { IQ2000BF_INSN_RBR1
, model_iq2000_rbr1
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2466 { IQ2000BF_INSN_RBR30
, model_iq2000_rbr30
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2467 { IQ2000BF_INSN_RFE
, model_iq2000_rfe
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2468 { IQ2000BF_INSN_RX
, model_iq2000_rx
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2469 { IQ2000BF_INSN_RXR1
, model_iq2000_rxr1
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2470 { IQ2000BF_INSN_RXR30
, model_iq2000_rxr30
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2471 { IQ2000BF_INSN_SLEEP
, model_iq2000_sleep
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2472 { IQ2000BF_INSN_SRRD
, model_iq2000_srrd
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2473 { IQ2000BF_INSN_SRRDL
, model_iq2000_srrdl
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2474 { IQ2000BF_INSN_SRULCK
, model_iq2000_srulck
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2475 { IQ2000BF_INSN_SRWR
, model_iq2000_srwr
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2476 { IQ2000BF_INSN_SRWRU
, model_iq2000_srwru
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2477 { IQ2000BF_INSN_TRAPQFL
, model_iq2000_trapqfl
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2478 { IQ2000BF_INSN_TRAPQNE
, model_iq2000_trapqne
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2479 { IQ2000BF_INSN_TRAPREL
, model_iq2000_traprel
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2480 { IQ2000BF_INSN_WB
, model_iq2000_wb
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2481 { IQ2000BF_INSN_WBU
, model_iq2000_wbu
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2482 { IQ2000BF_INSN_WBR1
, model_iq2000_wbr1
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2483 { IQ2000BF_INSN_WBR1U
, model_iq2000_wbr1u
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2484 { IQ2000BF_INSN_WBR30
, model_iq2000_wbr30
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2485 { IQ2000BF_INSN_WBR30U
, model_iq2000_wbr30u
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2486 { IQ2000BF_INSN_WX
, model_iq2000_wx
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2487 { IQ2000BF_INSN_WXU
, model_iq2000_wxu
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2488 { IQ2000BF_INSN_WXR1
, model_iq2000_wxr1
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2489 { IQ2000BF_INSN_WXR1U
, model_iq2000_wxr1u
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2490 { IQ2000BF_INSN_WXR30
, model_iq2000_wxr30
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2491 { IQ2000BF_INSN_WXR30U
, model_iq2000_wxr30u
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2492 { IQ2000BF_INSN_LDW
, model_iq2000_ldw
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2493 { IQ2000BF_INSN_SDW
, model_iq2000_sdw
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2494 { IQ2000BF_INSN_J
, model_iq2000_j
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2495 { IQ2000BF_INSN_JAL
, model_iq2000_jal
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2496 { IQ2000BF_INSN_BMB
, model_iq2000_bmb
, { { (int) UNIT_IQ2000_U_EXEC
, 1, 1 } } },
2499 #endif /* WITH_PROFILE_MODEL_P */
2502 iq2000_model_init (SIM_CPU
*cpu
)
2504 CPU_MODEL_DATA (cpu
) = (void *) zalloc (sizeof (MODEL_IQ2000_DATA
));
2507 #if WITH_PROFILE_MODEL_P
2508 #define TIMING_DATA(td) td
2510 #define TIMING_DATA(td) 0
2513 static const SIM_MODEL iq2000_models
[] =
2515 { "iq2000", & iq2000_mach
, MODEL_IQ2000
, TIMING_DATA (& iq2000_timing
[0]), iq2000_model_init
},
2519 /* The properties of this cpu's implementation. */
2521 static const SIM_MACH_IMP_PROPERTIES iq2000bf_imp_properties
=
2533 iq2000bf_prepare_run (SIM_CPU
*cpu
)
2535 if (CPU_IDESC (cpu
) == NULL
)
2536 iq2000bf_init_idesc_table (cpu
);
2539 static const CGEN_INSN
*
2540 iq2000bf_get_idata (SIM_CPU
*cpu
, int inum
)
2542 return CPU_IDESC (cpu
) [inum
].idata
;
2546 iq2000_init_cpu (SIM_CPU
*cpu
)
2548 CPU_REG_FETCH (cpu
) = iq2000bf_fetch_register
;
2549 CPU_REG_STORE (cpu
) = iq2000bf_store_register
;
2550 CPU_PC_FETCH (cpu
) = iq2000bf_h_pc_get
;
2551 CPU_PC_STORE (cpu
) = iq2000bf_h_pc_set
;
2552 CPU_GET_IDATA (cpu
) = iq2000bf_get_idata
;
2553 CPU_MAX_INSNS (cpu
) = IQ2000BF_INSN__MAX
;
2554 CPU_INSN_NAME (cpu
) = cgen_insn_name
;
2555 CPU_FULL_ENGINE_FN (cpu
) = iq2000bf_engine_run_full
;
2557 CPU_FAST_ENGINE_FN (cpu
) = iq2000bf_engine_run_fast
;
2559 CPU_FAST_ENGINE_FN (cpu
) = iq2000bf_engine_run_full
;
2563 const SIM_MACH iq2000_mach
=
2565 "iq2000", "iq2000", MACH_IQ2000
,
2566 32, 32, & iq2000_models
[0], & iq2000bf_imp_properties
,
2568 iq2000bf_prepare_run