294ff1a6c444212c65ea1944b8e63836cadd1bb0
1 #include "insn_includes.h"
3 reg_t
processor_t::opcode_func_004(insn_t insn
, reg_t pc
)
5 reg_t npc
= pc
+ insn_length(0x00000004);
6 #include "insns/c_ldsp.h"
10 reg_t
processor_t::opcode_func_00e(insn_t insn
, reg_t pc
)
12 throw trap_illegal_instruction
;
15 reg_t
processor_t::opcode_func_018(insn_t insn
, reg_t pc
)
17 reg_t npc
= pc
+ insn_length(0x00000018);
18 #include "insns/c_fsd.h"
22 reg_t
processor_t::opcode_func_022(insn_t insn
, reg_t pc
)
24 if((insn
.bits
& 0x801f) == 0x2)
26 reg_t npc
= pc
+ insn_length(0x00000002);
27 #include "insns/c_move.h"
30 if((insn
.bits
& 0x801f) == 0x8002)
32 reg_t npc
= pc
+ insn_length(0x00008002);
33 #include "insns/c_j.h"
36 throw trap_illegal_instruction
;
39 reg_t
processor_t::opcode_func_02c(insn_t insn
, reg_t pc
)
41 reg_t npc
= pc
+ insn_length(0x0000000c);
42 #include "insns/c_sd.h"
46 reg_t
processor_t::opcode_func_036(insn_t insn
, reg_t pc
)
48 reg_t npc
= pc
+ insn_length(0x00000016);
49 #include "insns/c_fsw.h"
53 reg_t
processor_t::opcode_func_040(insn_t insn
, reg_t pc
)
55 reg_t npc
= pc
+ insn_length(0x00000000);
56 #include "insns/c_li.h"
60 reg_t
processor_t::opcode_func_04a(insn_t insn
, reg_t pc
)
62 reg_t npc
= pc
+ insn_length(0x0000000a);
63 #include "insns/c_lw.h"
67 reg_t
processor_t::opcode_func_054(insn_t insn
, reg_t pc
)
69 reg_t npc
= pc
+ insn_length(0x00000014);
70 #include "insns/c_flw.h"
74 reg_t
processor_t::opcode_func_05e(insn_t insn
, reg_t pc
)
76 throw trap_illegal_instruction
;
79 reg_t
processor_t::opcode_func_068(insn_t insn
, reg_t pc
)
81 reg_t npc
= pc
+ insn_length(0x00000008);
82 #include "insns/c_swsp.h"
86 reg_t
processor_t::opcode_func_072(insn_t insn
, reg_t pc
)
88 if((insn
.bits
& 0x801f) == 0x12)
90 reg_t npc
= pc
+ insn_length(0x00000012);
91 #include "insns/c_lw0.h"
94 if((insn
.bits
& 0x801f) == 0x8012)
96 reg_t npc
= pc
+ insn_length(0x00008012);
97 #include "insns/c_ld0.h"
100 throw trap_illegal_instruction
;
103 reg_t
processor_t::opcode_func_07c(insn_t insn
, reg_t pc
)
105 reg_t npc
= pc
+ insn_length(0x0000001c);
106 #include "insns/c_add3.h"
110 reg_t
processor_t::opcode_func_086(insn_t insn
, reg_t pc
)
112 reg_t npc
= pc
+ insn_length(0x00000006);
113 #include "insns/c_sdsp.h"
117 reg_t
processor_t::opcode_func_090(insn_t insn
, reg_t pc
)
119 reg_t npc
= pc
+ insn_length(0x00000010);
120 #include "insns/c_beq.h"
124 reg_t
processor_t::opcode_func_09a(insn_t insn
, reg_t pc
)
126 if((insn
.bits
& 0x801f) == 0x801a)
128 reg_t npc
= pc
+ insn_length(0x0000801a);
129 #include "insns/c_sub.h"
132 if((insn
.bits
& 0x801f) == 0x1a)
134 reg_t npc
= pc
+ insn_length(0x0000001a);
135 #include "insns/c_add.h"
138 throw trap_illegal_instruction
;
141 reg_t
processor_t::opcode_func_0a4(insn_t insn
, reg_t pc
)
143 reg_t npc
= pc
+ insn_length(0x00000004);
144 #include "insns/c_ldsp.h"
148 reg_t
processor_t::opcode_func_0ae(insn_t insn
, reg_t pc
)
150 throw trap_illegal_instruction
;
153 reg_t
processor_t::opcode_func_0b8(insn_t insn
, reg_t pc
)
155 reg_t npc
= pc
+ insn_length(0x00000018);
156 #include "insns/c_fsd.h"
160 reg_t
processor_t::opcode_func_0c2(insn_t insn
, reg_t pc
)
162 if((insn
.bits
& 0x801f) == 0x2)
164 reg_t npc
= pc
+ insn_length(0x00000002);
165 #include "insns/c_move.h"
168 if((insn
.bits
& 0x801f) == 0x8002)
170 reg_t npc
= pc
+ insn_length(0x00008002);
171 #include "insns/c_j.h"
174 throw trap_illegal_instruction
;
177 reg_t
processor_t::opcode_func_0cc(insn_t insn
, reg_t pc
)
179 reg_t npc
= pc
+ insn_length(0x0000000c);
180 #include "insns/c_sd.h"
184 reg_t
processor_t::opcode_func_0d6(insn_t insn
, reg_t pc
)
186 reg_t npc
= pc
+ insn_length(0x00000016);
187 #include "insns/c_fsw.h"
191 reg_t
processor_t::opcode_func_0e0(insn_t insn
, reg_t pc
)
193 reg_t npc
= pc
+ insn_length(0x00000000);
194 #include "insns/c_li.h"
198 reg_t
processor_t::opcode_func_0ea(insn_t insn
, reg_t pc
)
200 reg_t npc
= pc
+ insn_length(0x0000000a);
201 #include "insns/c_lw.h"
205 reg_t
processor_t::opcode_func_0f4(insn_t insn
, reg_t pc
)
207 reg_t npc
= pc
+ insn_length(0x00000014);
208 #include "insns/c_flw.h"
212 reg_t
processor_t::opcode_func_0fe(insn_t insn
, reg_t pc
)
214 throw trap_illegal_instruction
;
217 reg_t
processor_t::opcode_func_108(insn_t insn
, reg_t pc
)
219 reg_t npc
= pc
+ insn_length(0x00000008);
220 #include "insns/c_swsp.h"
224 reg_t
processor_t::opcode_func_112(insn_t insn
, reg_t pc
)
226 if((insn
.bits
& 0x801f) == 0x12)
228 reg_t npc
= pc
+ insn_length(0x00000012);
229 #include "insns/c_lw0.h"
232 if((insn
.bits
& 0x801f) == 0x8012)
234 reg_t npc
= pc
+ insn_length(0x00008012);
235 #include "insns/c_ld0.h"
238 throw trap_illegal_instruction
;
241 reg_t
processor_t::opcode_func_11c(insn_t insn
, reg_t pc
)
243 reg_t npc
= pc
+ insn_length(0x0000011c);
244 #include "insns/c_sub3.h"
248 reg_t
processor_t::opcode_func_126(insn_t insn
, reg_t pc
)
250 reg_t npc
= pc
+ insn_length(0x00000006);
251 #include "insns/c_sdsp.h"
255 reg_t
processor_t::opcode_func_130(insn_t insn
, reg_t pc
)
257 reg_t npc
= pc
+ insn_length(0x00000010);
258 #include "insns/c_beq.h"
262 reg_t
processor_t::opcode_func_13a(insn_t insn
, reg_t pc
)
264 if((insn
.bits
& 0x801f) == 0x801a)
266 reg_t npc
= pc
+ insn_length(0x0000801a);
267 #include "insns/c_sub.h"
270 if((insn
.bits
& 0x801f) == 0x1a)
272 reg_t npc
= pc
+ insn_length(0x0000001a);
273 #include "insns/c_add.h"
276 throw trap_illegal_instruction
;
279 reg_t
processor_t::opcode_func_144(insn_t insn
, reg_t pc
)
281 reg_t npc
= pc
+ insn_length(0x00000004);
282 #include "insns/c_ldsp.h"
286 reg_t
processor_t::opcode_func_14e(insn_t insn
, reg_t pc
)
288 throw trap_illegal_instruction
;
291 reg_t
processor_t::opcode_func_158(insn_t insn
, reg_t pc
)
293 reg_t npc
= pc
+ insn_length(0x00000018);
294 #include "insns/c_fsd.h"
298 reg_t
processor_t::opcode_func_162(insn_t insn
, reg_t pc
)
300 if((insn
.bits
& 0x801f) == 0x2)
302 reg_t npc
= pc
+ insn_length(0x00000002);
303 #include "insns/c_move.h"
306 if((insn
.bits
& 0x801f) == 0x8002)
308 reg_t npc
= pc
+ insn_length(0x00008002);
309 #include "insns/c_j.h"
312 throw trap_illegal_instruction
;
315 reg_t
processor_t::opcode_func_16c(insn_t insn
, reg_t pc
)
317 reg_t npc
= pc
+ insn_length(0x0000000c);
318 #include "insns/c_sd.h"
322 reg_t
processor_t::opcode_func_176(insn_t insn
, reg_t pc
)
324 reg_t npc
= pc
+ insn_length(0x00000016);
325 #include "insns/c_fsw.h"
329 reg_t
processor_t::opcode_func_180(insn_t insn
, reg_t pc
)
331 reg_t npc
= pc
+ insn_length(0x00000000);
332 #include "insns/c_li.h"
336 reg_t
processor_t::opcode_func_18a(insn_t insn
, reg_t pc
)
338 reg_t npc
= pc
+ insn_length(0x0000000a);
339 #include "insns/c_lw.h"
343 reg_t
processor_t::opcode_func_194(insn_t insn
, reg_t pc
)
345 reg_t npc
= pc
+ insn_length(0x00000014);
346 #include "insns/c_flw.h"
350 reg_t
processor_t::opcode_func_19e(insn_t insn
, reg_t pc
)
352 throw trap_illegal_instruction
;
355 reg_t
processor_t::opcode_func_1a8(insn_t insn
, reg_t pc
)
357 reg_t npc
= pc
+ insn_length(0x00000008);
358 #include "insns/c_swsp.h"
362 reg_t
processor_t::opcode_func_1b2(insn_t insn
, reg_t pc
)
364 if((insn
.bits
& 0x801f) == 0x12)
366 reg_t npc
= pc
+ insn_length(0x00000012);
367 #include "insns/c_lw0.h"
370 if((insn
.bits
& 0x801f) == 0x8012)
372 reg_t npc
= pc
+ insn_length(0x00008012);
373 #include "insns/c_ld0.h"
376 throw trap_illegal_instruction
;
379 reg_t
processor_t::opcode_func_1bc(insn_t insn
, reg_t pc
)
381 reg_t npc
= pc
+ insn_length(0x0000011c);
382 #include "insns/c_sub3.h"
386 reg_t
processor_t::opcode_func_1c6(insn_t insn
, reg_t pc
)
388 reg_t npc
= pc
+ insn_length(0x00000006);
389 #include "insns/c_sdsp.h"
393 reg_t
processor_t::opcode_func_1d0(insn_t insn
, reg_t pc
)
395 reg_t npc
= pc
+ insn_length(0x00000010);
396 #include "insns/c_beq.h"
400 reg_t
processor_t::opcode_func_1da(insn_t insn
, reg_t pc
)
402 if((insn
.bits
& 0x801f) == 0x801a)
404 reg_t npc
= pc
+ insn_length(0x0000801a);
405 #include "insns/c_sub.h"
408 if((insn
.bits
& 0x801f) == 0x1a)
410 reg_t npc
= pc
+ insn_length(0x0000001a);
411 #include "insns/c_add.h"
414 throw trap_illegal_instruction
;
417 reg_t
processor_t::opcode_func_1e4(insn_t insn
, reg_t pc
)
419 reg_t npc
= pc
+ insn_length(0x00000004);
420 #include "insns/c_ldsp.h"
424 reg_t
processor_t::opcode_func_1ee(insn_t insn
, reg_t pc
)
426 throw trap_illegal_instruction
;
429 reg_t
processor_t::opcode_func_1f8(insn_t insn
, reg_t pc
)
431 reg_t npc
= pc
+ insn_length(0x00000018);
432 #include "insns/c_fsd.h"
436 reg_t
processor_t::opcode_func_202(insn_t insn
, reg_t pc
)
438 if((insn
.bits
& 0x801f) == 0x2)
440 reg_t npc
= pc
+ insn_length(0x00000002);
441 #include "insns/c_move.h"
444 if((insn
.bits
& 0x801f) == 0x8002)
446 reg_t npc
= pc
+ insn_length(0x00008002);
447 #include "insns/c_j.h"
450 throw trap_illegal_instruction
;
453 reg_t
processor_t::opcode_func_20c(insn_t insn
, reg_t pc
)
455 reg_t npc
= pc
+ insn_length(0x0000000c);
456 #include "insns/c_sd.h"
460 reg_t
processor_t::opcode_func_216(insn_t insn
, reg_t pc
)
462 reg_t npc
= pc
+ insn_length(0x00000016);
463 #include "insns/c_fsw.h"
467 reg_t
processor_t::opcode_func_220(insn_t insn
, reg_t pc
)
469 reg_t npc
= pc
+ insn_length(0x00000000);
470 #include "insns/c_li.h"
474 reg_t
processor_t::opcode_func_22a(insn_t insn
, reg_t pc
)
476 reg_t npc
= pc
+ insn_length(0x0000000a);
477 #include "insns/c_lw.h"
481 reg_t
processor_t::opcode_func_234(insn_t insn
, reg_t pc
)
483 reg_t npc
= pc
+ insn_length(0x00000014);
484 #include "insns/c_flw.h"
488 reg_t
processor_t::opcode_func_23e(insn_t insn
, reg_t pc
)
490 throw trap_illegal_instruction
;
493 reg_t
processor_t::opcode_func_248(insn_t insn
, reg_t pc
)
495 reg_t npc
= pc
+ insn_length(0x00000008);
496 #include "insns/c_swsp.h"
500 reg_t
processor_t::opcode_func_252(insn_t insn
, reg_t pc
)
502 if((insn
.bits
& 0x801f) == 0x12)
504 reg_t npc
= pc
+ insn_length(0x00000012);
505 #include "insns/c_lw0.h"
508 if((insn
.bits
& 0x801f) == 0x8012)
510 reg_t npc
= pc
+ insn_length(0x00008012);
511 #include "insns/c_ld0.h"
514 throw trap_illegal_instruction
;
517 reg_t
processor_t::opcode_func_25c(insn_t insn
, reg_t pc
)
519 reg_t npc
= pc
+ insn_length(0x0000021c);
520 #include "insns/c_or3.h"
524 reg_t
processor_t::opcode_func_266(insn_t insn
, reg_t pc
)
526 reg_t npc
= pc
+ insn_length(0x00000006);
527 #include "insns/c_sdsp.h"
531 reg_t
processor_t::opcode_func_270(insn_t insn
, reg_t pc
)
533 reg_t npc
= pc
+ insn_length(0x00000010);
534 #include "insns/c_beq.h"
538 reg_t
processor_t::opcode_func_27a(insn_t insn
, reg_t pc
)
540 if((insn
.bits
& 0x801f) == 0x801a)
542 reg_t npc
= pc
+ insn_length(0x0000801a);
543 #include "insns/c_sub.h"
546 if((insn
.bits
& 0x801f) == 0x1a)
548 reg_t npc
= pc
+ insn_length(0x0000001a);
549 #include "insns/c_add.h"
552 throw trap_illegal_instruction
;
555 reg_t
processor_t::opcode_func_284(insn_t insn
, reg_t pc
)
557 reg_t npc
= pc
+ insn_length(0x00000004);
558 #include "insns/c_ldsp.h"
562 reg_t
processor_t::opcode_func_28e(insn_t insn
, reg_t pc
)
564 throw trap_illegal_instruction
;
567 reg_t
processor_t::opcode_func_298(insn_t insn
, reg_t pc
)
569 reg_t npc
= pc
+ insn_length(0x00000018);
570 #include "insns/c_fsd.h"
574 reg_t
processor_t::opcode_func_2a2(insn_t insn
, reg_t pc
)
576 if((insn
.bits
& 0x801f) == 0x2)
578 reg_t npc
= pc
+ insn_length(0x00000002);
579 #include "insns/c_move.h"
582 if((insn
.bits
& 0x801f) == 0x8002)
584 reg_t npc
= pc
+ insn_length(0x00008002);
585 #include "insns/c_j.h"
588 throw trap_illegal_instruction
;
591 reg_t
processor_t::opcode_func_2ac(insn_t insn
, reg_t pc
)
593 reg_t npc
= pc
+ insn_length(0x0000000c);
594 #include "insns/c_sd.h"
598 reg_t
processor_t::opcode_func_2b6(insn_t insn
, reg_t pc
)
600 reg_t npc
= pc
+ insn_length(0x00000016);
601 #include "insns/c_fsw.h"
605 reg_t
processor_t::opcode_func_2c0(insn_t insn
, reg_t pc
)
607 reg_t npc
= pc
+ insn_length(0x00000000);
608 #include "insns/c_li.h"
612 reg_t
processor_t::opcode_func_2ca(insn_t insn
, reg_t pc
)
614 reg_t npc
= pc
+ insn_length(0x0000000a);
615 #include "insns/c_lw.h"
619 reg_t
processor_t::opcode_func_2d4(insn_t insn
, reg_t pc
)
621 reg_t npc
= pc
+ insn_length(0x00000014);
622 #include "insns/c_flw.h"
626 reg_t
processor_t::opcode_func_2de(insn_t insn
, reg_t pc
)
628 throw trap_illegal_instruction
;
631 reg_t
processor_t::opcode_func_2e8(insn_t insn
, reg_t pc
)
633 reg_t npc
= pc
+ insn_length(0x00000008);
634 #include "insns/c_swsp.h"
638 reg_t
processor_t::opcode_func_2f2(insn_t insn
, reg_t pc
)
640 if((insn
.bits
& 0x801f) == 0x12)
642 reg_t npc
= pc
+ insn_length(0x00000012);
643 #include "insns/c_lw0.h"
646 if((insn
.bits
& 0x801f) == 0x8012)
648 reg_t npc
= pc
+ insn_length(0x00008012);
649 #include "insns/c_ld0.h"
652 throw trap_illegal_instruction
;
655 reg_t
processor_t::opcode_func_2fc(insn_t insn
, reg_t pc
)
657 reg_t npc
= pc
+ insn_length(0x0000021c);
658 #include "insns/c_or3.h"
662 reg_t
processor_t::opcode_func_306(insn_t insn
, reg_t pc
)
664 reg_t npc
= pc
+ insn_length(0x00000006);
665 #include "insns/c_sdsp.h"
669 reg_t
processor_t::opcode_func_310(insn_t insn
, reg_t pc
)
671 reg_t npc
= pc
+ insn_length(0x00000010);
672 #include "insns/c_beq.h"
676 reg_t
processor_t::opcode_func_31a(insn_t insn
, reg_t pc
)
678 if((insn
.bits
& 0x801f) == 0x801a)
680 reg_t npc
= pc
+ insn_length(0x0000801a);
681 #include "insns/c_sub.h"
684 if((insn
.bits
& 0x801f) == 0x1a)
686 reg_t npc
= pc
+ insn_length(0x0000001a);
687 #include "insns/c_add.h"
690 throw trap_illegal_instruction
;
693 reg_t
processor_t::opcode_func_324(insn_t insn
, reg_t pc
)
695 reg_t npc
= pc
+ insn_length(0x00000004);
696 #include "insns/c_ldsp.h"
700 reg_t
processor_t::opcode_func_32e(insn_t insn
, reg_t pc
)
702 throw trap_illegal_instruction
;
705 reg_t
processor_t::opcode_func_338(insn_t insn
, reg_t pc
)
707 reg_t npc
= pc
+ insn_length(0x00000018);
708 #include "insns/c_fsd.h"
712 reg_t
processor_t::opcode_func_342(insn_t insn
, reg_t pc
)
714 if((insn
.bits
& 0x801f) == 0x2)
716 reg_t npc
= pc
+ insn_length(0x00000002);
717 #include "insns/c_move.h"
720 if((insn
.bits
& 0x801f) == 0x8002)
722 reg_t npc
= pc
+ insn_length(0x00008002);
723 #include "insns/c_j.h"
726 throw trap_illegal_instruction
;
729 reg_t
processor_t::opcode_func_34c(insn_t insn
, reg_t pc
)
731 reg_t npc
= pc
+ insn_length(0x0000000c);
732 #include "insns/c_sd.h"
736 reg_t
processor_t::opcode_func_356(insn_t insn
, reg_t pc
)
738 reg_t npc
= pc
+ insn_length(0x00000016);
739 #include "insns/c_fsw.h"
743 reg_t
processor_t::opcode_func_360(insn_t insn
, reg_t pc
)
745 reg_t npc
= pc
+ insn_length(0x00000000);
746 #include "insns/c_li.h"
750 reg_t
processor_t::opcode_func_36a(insn_t insn
, reg_t pc
)
752 reg_t npc
= pc
+ insn_length(0x0000000a);
753 #include "insns/c_lw.h"
757 reg_t
processor_t::opcode_func_374(insn_t insn
, reg_t pc
)
759 reg_t npc
= pc
+ insn_length(0x00000014);
760 #include "insns/c_flw.h"
764 reg_t
processor_t::opcode_func_37e(insn_t insn
, reg_t pc
)
766 throw trap_illegal_instruction
;
769 reg_t
processor_t::opcode_func_388(insn_t insn
, reg_t pc
)
771 reg_t npc
= pc
+ insn_length(0x00000008);
772 #include "insns/c_swsp.h"
776 reg_t
processor_t::opcode_func_392(insn_t insn
, reg_t pc
)
778 if((insn
.bits
& 0x801f) == 0x12)
780 reg_t npc
= pc
+ insn_length(0x00000012);
781 #include "insns/c_lw0.h"
784 if((insn
.bits
& 0x801f) == 0x8012)
786 reg_t npc
= pc
+ insn_length(0x00008012);
787 #include "insns/c_ld0.h"
790 throw trap_illegal_instruction
;
793 reg_t
processor_t::opcode_func_39c(insn_t insn
, reg_t pc
)
795 reg_t npc
= pc
+ insn_length(0x0000031c);
796 #include "insns/c_and3.h"
800 reg_t
processor_t::opcode_func_3a6(insn_t insn
, reg_t pc
)
802 reg_t npc
= pc
+ insn_length(0x00000006);
803 #include "insns/c_sdsp.h"
807 reg_t
processor_t::opcode_func_3b0(insn_t insn
, reg_t pc
)
809 reg_t npc
= pc
+ insn_length(0x00000010);
810 #include "insns/c_beq.h"
814 reg_t
processor_t::opcode_func_3ba(insn_t insn
, reg_t pc
)
816 if((insn
.bits
& 0x801f) == 0x801a)
818 reg_t npc
= pc
+ insn_length(0x0000801a);
819 #include "insns/c_sub.h"
822 if((insn
.bits
& 0x801f) == 0x1a)
824 reg_t npc
= pc
+ insn_length(0x0000001a);
825 #include "insns/c_add.h"
828 throw trap_illegal_instruction
;
831 reg_t
processor_t::opcode_func_3c4(insn_t insn
, reg_t pc
)
833 reg_t npc
= pc
+ insn_length(0x00000004);
834 #include "insns/c_ldsp.h"
838 reg_t
processor_t::opcode_func_3ce(insn_t insn
, reg_t pc
)
840 throw trap_illegal_instruction
;
843 reg_t
processor_t::opcode_func_3d8(insn_t insn
, reg_t pc
)
845 reg_t npc
= pc
+ insn_length(0x00000018);
846 #include "insns/c_fsd.h"
850 reg_t
processor_t::opcode_func_3e2(insn_t insn
, reg_t pc
)
852 if((insn
.bits
& 0x801f) == 0x2)
854 reg_t npc
= pc
+ insn_length(0x00000002);
855 #include "insns/c_move.h"
858 if((insn
.bits
& 0x801f) == 0x8002)
860 reg_t npc
= pc
+ insn_length(0x00008002);
861 #include "insns/c_j.h"
864 throw trap_illegal_instruction
;
867 reg_t
processor_t::opcode_func_3ec(insn_t insn
, reg_t pc
)
869 reg_t npc
= pc
+ insn_length(0x0000000c);
870 #include "insns/c_sd.h"
874 reg_t
processor_t::opcode_func_3f6(insn_t insn
, reg_t pc
)
876 reg_t npc
= pc
+ insn_length(0x00000016);
877 #include "insns/c_fsw.h"