a22acd2e24824159a82027e7b0d05ee3d5def88b
1 #include "insn_includes.h"
3 reg_t
processor_t::opcode_func_000(insn_t insn
, reg_t pc
)
5 reg_t npc
= pc
+ insn_length(0x00000000);
6 #include "insns/c_li.h"
10 reg_t
processor_t::opcode_func_00a(insn_t insn
, reg_t pc
)
12 reg_t npc
= pc
+ insn_length(0x0000000a);
13 #include "insns/c_lw.h"
17 reg_t
processor_t::opcode_func_014(insn_t insn
, reg_t pc
)
19 reg_t npc
= pc
+ insn_length(0x00000014);
20 #include "insns/c_flw.h"
24 reg_t
processor_t::opcode_func_01e(insn_t insn
, reg_t pc
)
26 throw trap_illegal_instruction
;
29 reg_t
processor_t::opcode_func_028(insn_t insn
, reg_t pc
)
31 reg_t npc
= pc
+ insn_length(0x00000008);
32 #include "insns/c_swsp.h"
36 reg_t
processor_t::opcode_func_032(insn_t insn
, reg_t pc
)
38 if((insn
.bits
& 0x801f) == 0x12)
40 reg_t npc
= pc
+ insn_length(0x00000012);
41 #include "insns/c_lw0.h"
44 if((insn
.bits
& 0x801f) == 0x8012)
46 reg_t npc
= pc
+ insn_length(0x00008012);
47 #include "insns/c_ld0.h"
50 throw trap_illegal_instruction
;
53 reg_t
processor_t::opcode_func_03c(insn_t insn
, reg_t pc
)
55 reg_t npc
= pc
+ insn_length(0x0000001c);
56 #include "insns/c_add3.h"
60 reg_t
processor_t::opcode_func_046(insn_t insn
, reg_t pc
)
62 reg_t npc
= pc
+ insn_length(0x00000006);
63 #include "insns/c_sdsp.h"
67 reg_t
processor_t::opcode_func_050(insn_t insn
, reg_t pc
)
69 reg_t npc
= pc
+ insn_length(0x00000010);
70 #include "insns/c_beq.h"
74 reg_t
processor_t::opcode_func_05a(insn_t insn
, reg_t pc
)
76 if((insn
.bits
& 0x801f) == 0x801a)
78 reg_t npc
= pc
+ insn_length(0x0000801a);
79 #include "insns/c_sub.h"
82 if((insn
.bits
& 0x801f) == 0x1a)
84 reg_t npc
= pc
+ insn_length(0x0000001a);
85 #include "insns/c_add.h"
88 throw trap_illegal_instruction
;
91 reg_t
processor_t::opcode_func_064(insn_t insn
, reg_t pc
)
93 reg_t npc
= pc
+ insn_length(0x00000004);
94 #include "insns/c_ldsp.h"
98 reg_t
processor_t::opcode_func_06e(insn_t insn
, reg_t pc
)
100 throw trap_illegal_instruction
;
103 reg_t
processor_t::opcode_func_078(insn_t insn
, reg_t pc
)
105 reg_t npc
= pc
+ insn_length(0x00000018);
106 #include "insns/c_fsd.h"
110 reg_t
processor_t::opcode_func_082(insn_t insn
, reg_t pc
)
112 if((insn
.bits
& 0x801f) == 0x2)
114 reg_t npc
= pc
+ insn_length(0x00000002);
115 #include "insns/c_move.h"
118 if((insn
.bits
& 0x801f) == 0x8002)
120 reg_t npc
= pc
+ insn_length(0x00008002);
121 #include "insns/c_j.h"
124 throw trap_illegal_instruction
;
127 reg_t
processor_t::opcode_func_08c(insn_t insn
, reg_t pc
)
129 reg_t npc
= pc
+ insn_length(0x0000000c);
130 #include "insns/c_sd.h"
134 reg_t
processor_t::opcode_func_096(insn_t insn
, reg_t pc
)
136 reg_t npc
= pc
+ insn_length(0x00000016);
137 #include "insns/c_fsw.h"
141 reg_t
processor_t::opcode_func_0a0(insn_t insn
, reg_t pc
)
143 reg_t npc
= pc
+ insn_length(0x00000000);
144 #include "insns/c_li.h"
148 reg_t
processor_t::opcode_func_0aa(insn_t insn
, reg_t pc
)
150 reg_t npc
= pc
+ insn_length(0x0000000a);
151 #include "insns/c_lw.h"
155 reg_t
processor_t::opcode_func_0b4(insn_t insn
, reg_t pc
)
157 reg_t npc
= pc
+ insn_length(0x00000014);
158 #include "insns/c_flw.h"
162 reg_t
processor_t::opcode_func_0be(insn_t insn
, reg_t pc
)
164 throw trap_illegal_instruction
;
167 reg_t
processor_t::opcode_func_0c8(insn_t insn
, reg_t pc
)
169 reg_t npc
= pc
+ insn_length(0x00000008);
170 #include "insns/c_swsp.h"
174 reg_t
processor_t::opcode_func_0d2(insn_t insn
, reg_t pc
)
176 if((insn
.bits
& 0x801f) == 0x12)
178 reg_t npc
= pc
+ insn_length(0x00000012);
179 #include "insns/c_lw0.h"
182 if((insn
.bits
& 0x801f) == 0x8012)
184 reg_t npc
= pc
+ insn_length(0x00008012);
185 #include "insns/c_ld0.h"
188 throw trap_illegal_instruction
;
191 reg_t
processor_t::opcode_func_0dc(insn_t insn
, reg_t pc
)
193 reg_t npc
= pc
+ insn_length(0x0000001c);
194 #include "insns/c_add3.h"
198 reg_t
processor_t::opcode_func_0e6(insn_t insn
, reg_t pc
)
200 reg_t npc
= pc
+ insn_length(0x00000006);
201 #include "insns/c_sdsp.h"
205 reg_t
processor_t::opcode_func_0f0(insn_t insn
, reg_t pc
)
207 reg_t npc
= pc
+ insn_length(0x00000010);
208 #include "insns/c_beq.h"
212 reg_t
processor_t::opcode_func_0fa(insn_t insn
, reg_t pc
)
214 if((insn
.bits
& 0x801f) == 0x801a)
216 reg_t npc
= pc
+ insn_length(0x0000801a);
217 #include "insns/c_sub.h"
220 if((insn
.bits
& 0x801f) == 0x1a)
222 reg_t npc
= pc
+ insn_length(0x0000001a);
223 #include "insns/c_add.h"
226 throw trap_illegal_instruction
;
229 reg_t
processor_t::opcode_func_104(insn_t insn
, reg_t pc
)
231 reg_t npc
= pc
+ insn_length(0x00000004);
232 #include "insns/c_ldsp.h"
236 reg_t
processor_t::opcode_func_10e(insn_t insn
, reg_t pc
)
238 throw trap_illegal_instruction
;
241 reg_t
processor_t::opcode_func_118(insn_t insn
, reg_t pc
)
243 reg_t npc
= pc
+ insn_length(0x00000018);
244 #include "insns/c_fsd.h"
248 reg_t
processor_t::opcode_func_122(insn_t insn
, reg_t pc
)
250 if((insn
.bits
& 0x801f) == 0x2)
252 reg_t npc
= pc
+ insn_length(0x00000002);
253 #include "insns/c_move.h"
256 if((insn
.bits
& 0x801f) == 0x8002)
258 reg_t npc
= pc
+ insn_length(0x00008002);
259 #include "insns/c_j.h"
262 throw trap_illegal_instruction
;
265 reg_t
processor_t::opcode_func_12c(insn_t insn
, reg_t pc
)
267 reg_t npc
= pc
+ insn_length(0x0000000c);
268 #include "insns/c_sd.h"
272 reg_t
processor_t::opcode_func_136(insn_t insn
, reg_t pc
)
274 reg_t npc
= pc
+ insn_length(0x00000016);
275 #include "insns/c_fsw.h"
279 reg_t
processor_t::opcode_func_140(insn_t insn
, reg_t pc
)
281 reg_t npc
= pc
+ insn_length(0x00000000);
282 #include "insns/c_li.h"
286 reg_t
processor_t::opcode_func_14a(insn_t insn
, reg_t pc
)
288 reg_t npc
= pc
+ insn_length(0x0000000a);
289 #include "insns/c_lw.h"
293 reg_t
processor_t::opcode_func_154(insn_t insn
, reg_t pc
)
295 reg_t npc
= pc
+ insn_length(0x00000014);
296 #include "insns/c_flw.h"
300 reg_t
processor_t::opcode_func_15e(insn_t insn
, reg_t pc
)
302 throw trap_illegal_instruction
;
305 reg_t
processor_t::opcode_func_168(insn_t insn
, reg_t pc
)
307 reg_t npc
= pc
+ insn_length(0x00000008);
308 #include "insns/c_swsp.h"
312 reg_t
processor_t::opcode_func_172(insn_t insn
, reg_t pc
)
314 if((insn
.bits
& 0x801f) == 0x12)
316 reg_t npc
= pc
+ insn_length(0x00000012);
317 #include "insns/c_lw0.h"
320 if((insn
.bits
& 0x801f) == 0x8012)
322 reg_t npc
= pc
+ insn_length(0x00008012);
323 #include "insns/c_ld0.h"
326 throw trap_illegal_instruction
;
329 reg_t
processor_t::opcode_func_17c(insn_t insn
, reg_t pc
)
331 reg_t npc
= pc
+ insn_length(0x0000011c);
332 #include "insns/c_sub3.h"
336 reg_t
processor_t::opcode_func_186(insn_t insn
, reg_t pc
)
338 reg_t npc
= pc
+ insn_length(0x00000006);
339 #include "insns/c_sdsp.h"
343 reg_t
processor_t::opcode_func_190(insn_t insn
, reg_t pc
)
345 reg_t npc
= pc
+ insn_length(0x00000010);
346 #include "insns/c_beq.h"
350 reg_t
processor_t::opcode_func_19a(insn_t insn
, reg_t pc
)
352 if((insn
.bits
& 0x801f) == 0x801a)
354 reg_t npc
= pc
+ insn_length(0x0000801a);
355 #include "insns/c_sub.h"
358 if((insn
.bits
& 0x801f) == 0x1a)
360 reg_t npc
= pc
+ insn_length(0x0000001a);
361 #include "insns/c_add.h"
364 throw trap_illegal_instruction
;
367 reg_t
processor_t::opcode_func_1a4(insn_t insn
, reg_t pc
)
369 reg_t npc
= pc
+ insn_length(0x00000004);
370 #include "insns/c_ldsp.h"
374 reg_t
processor_t::opcode_func_1ae(insn_t insn
, reg_t pc
)
376 throw trap_illegal_instruction
;
379 reg_t
processor_t::opcode_func_1b8(insn_t insn
, reg_t pc
)
381 reg_t npc
= pc
+ insn_length(0x00000018);
382 #include "insns/c_fsd.h"
386 reg_t
processor_t::opcode_func_1c2(insn_t insn
, reg_t pc
)
388 if((insn
.bits
& 0x801f) == 0x2)
390 reg_t npc
= pc
+ insn_length(0x00000002);
391 #include "insns/c_move.h"
394 if((insn
.bits
& 0x801f) == 0x8002)
396 reg_t npc
= pc
+ insn_length(0x00008002);
397 #include "insns/c_j.h"
400 throw trap_illegal_instruction
;
403 reg_t
processor_t::opcode_func_1cc(insn_t insn
, reg_t pc
)
405 reg_t npc
= pc
+ insn_length(0x0000000c);
406 #include "insns/c_sd.h"
410 reg_t
processor_t::opcode_func_1d6(insn_t insn
, reg_t pc
)
412 reg_t npc
= pc
+ insn_length(0x00000016);
413 #include "insns/c_fsw.h"
417 reg_t
processor_t::opcode_func_1e0(insn_t insn
, reg_t pc
)
419 reg_t npc
= pc
+ insn_length(0x00000000);
420 #include "insns/c_li.h"
424 reg_t
processor_t::opcode_func_1ea(insn_t insn
, reg_t pc
)
426 reg_t npc
= pc
+ insn_length(0x0000000a);
427 #include "insns/c_lw.h"
431 reg_t
processor_t::opcode_func_1f4(insn_t insn
, reg_t pc
)
433 reg_t npc
= pc
+ insn_length(0x00000014);
434 #include "insns/c_flw.h"
438 reg_t
processor_t::opcode_func_1fe(insn_t insn
, reg_t pc
)
440 throw trap_illegal_instruction
;
443 reg_t
processor_t::opcode_func_208(insn_t insn
, reg_t pc
)
445 reg_t npc
= pc
+ insn_length(0x00000008);
446 #include "insns/c_swsp.h"
450 reg_t
processor_t::opcode_func_212(insn_t insn
, reg_t pc
)
452 if((insn
.bits
& 0x801f) == 0x12)
454 reg_t npc
= pc
+ insn_length(0x00000012);
455 #include "insns/c_lw0.h"
458 if((insn
.bits
& 0x801f) == 0x8012)
460 reg_t npc
= pc
+ insn_length(0x00008012);
461 #include "insns/c_ld0.h"
464 throw trap_illegal_instruction
;
467 reg_t
processor_t::opcode_func_21c(insn_t insn
, reg_t pc
)
469 reg_t npc
= pc
+ insn_length(0x0000021c);
470 #include "insns/c_or3.h"
474 reg_t
processor_t::opcode_func_226(insn_t insn
, reg_t pc
)
476 reg_t npc
= pc
+ insn_length(0x00000006);
477 #include "insns/c_sdsp.h"
481 reg_t
processor_t::opcode_func_230(insn_t insn
, reg_t pc
)
483 reg_t npc
= pc
+ insn_length(0x00000010);
484 #include "insns/c_beq.h"
488 reg_t
processor_t::opcode_func_23a(insn_t insn
, reg_t pc
)
490 if((insn
.bits
& 0x801f) == 0x801a)
492 reg_t npc
= pc
+ insn_length(0x0000801a);
493 #include "insns/c_sub.h"
496 if((insn
.bits
& 0x801f) == 0x1a)
498 reg_t npc
= pc
+ insn_length(0x0000001a);
499 #include "insns/c_add.h"
502 throw trap_illegal_instruction
;
505 reg_t
processor_t::opcode_func_244(insn_t insn
, reg_t pc
)
507 reg_t npc
= pc
+ insn_length(0x00000004);
508 #include "insns/c_ldsp.h"
512 reg_t
processor_t::opcode_func_24e(insn_t insn
, reg_t pc
)
514 throw trap_illegal_instruction
;
517 reg_t
processor_t::opcode_func_258(insn_t insn
, reg_t pc
)
519 reg_t npc
= pc
+ insn_length(0x00000018);
520 #include "insns/c_fsd.h"
524 reg_t
processor_t::opcode_func_262(insn_t insn
, reg_t pc
)
526 if((insn
.bits
& 0x801f) == 0x2)
528 reg_t npc
= pc
+ insn_length(0x00000002);
529 #include "insns/c_move.h"
532 if((insn
.bits
& 0x801f) == 0x8002)
534 reg_t npc
= pc
+ insn_length(0x00008002);
535 #include "insns/c_j.h"
538 throw trap_illegal_instruction
;
541 reg_t
processor_t::opcode_func_26c(insn_t insn
, reg_t pc
)
543 reg_t npc
= pc
+ insn_length(0x0000000c);
544 #include "insns/c_sd.h"
548 reg_t
processor_t::opcode_func_276(insn_t insn
, reg_t pc
)
550 reg_t npc
= pc
+ insn_length(0x00000016);
551 #include "insns/c_fsw.h"
555 reg_t
processor_t::opcode_func_280(insn_t insn
, reg_t pc
)
557 reg_t npc
= pc
+ insn_length(0x00000000);
558 #include "insns/c_li.h"
562 reg_t
processor_t::opcode_func_28a(insn_t insn
, reg_t pc
)
564 reg_t npc
= pc
+ insn_length(0x0000000a);
565 #include "insns/c_lw.h"
569 reg_t
processor_t::opcode_func_294(insn_t insn
, reg_t pc
)
571 reg_t npc
= pc
+ insn_length(0x00000014);
572 #include "insns/c_flw.h"
576 reg_t
processor_t::opcode_func_29e(insn_t insn
, reg_t pc
)
578 throw trap_illegal_instruction
;
581 reg_t
processor_t::opcode_func_2a8(insn_t insn
, reg_t pc
)
583 reg_t npc
= pc
+ insn_length(0x00000008);
584 #include "insns/c_swsp.h"
588 reg_t
processor_t::opcode_func_2b2(insn_t insn
, reg_t pc
)
590 if((insn
.bits
& 0x801f) == 0x12)
592 reg_t npc
= pc
+ insn_length(0x00000012);
593 #include "insns/c_lw0.h"
596 if((insn
.bits
& 0x801f) == 0x8012)
598 reg_t npc
= pc
+ insn_length(0x00008012);
599 #include "insns/c_ld0.h"
602 throw trap_illegal_instruction
;
605 reg_t
processor_t::opcode_func_2bc(insn_t insn
, reg_t pc
)
607 reg_t npc
= pc
+ insn_length(0x0000021c);
608 #include "insns/c_or3.h"
612 reg_t
processor_t::opcode_func_2c6(insn_t insn
, reg_t pc
)
614 reg_t npc
= pc
+ insn_length(0x00000006);
615 #include "insns/c_sdsp.h"
619 reg_t
processor_t::opcode_func_2d0(insn_t insn
, reg_t pc
)
621 reg_t npc
= pc
+ insn_length(0x00000010);
622 #include "insns/c_beq.h"
626 reg_t
processor_t::opcode_func_2da(insn_t insn
, reg_t pc
)
628 if((insn
.bits
& 0x801f) == 0x801a)
630 reg_t npc
= pc
+ insn_length(0x0000801a);
631 #include "insns/c_sub.h"
634 if((insn
.bits
& 0x801f) == 0x1a)
636 reg_t npc
= pc
+ insn_length(0x0000001a);
637 #include "insns/c_add.h"
640 throw trap_illegal_instruction
;
643 reg_t
processor_t::opcode_func_2e4(insn_t insn
, reg_t pc
)
645 reg_t npc
= pc
+ insn_length(0x00000004);
646 #include "insns/c_ldsp.h"
650 reg_t
processor_t::opcode_func_2ee(insn_t insn
, reg_t pc
)
652 throw trap_illegal_instruction
;
655 reg_t
processor_t::opcode_func_2f8(insn_t insn
, reg_t pc
)
657 reg_t npc
= pc
+ insn_length(0x00000018);
658 #include "insns/c_fsd.h"
662 reg_t
processor_t::opcode_func_302(insn_t insn
, reg_t pc
)
664 if((insn
.bits
& 0x801f) == 0x2)
666 reg_t npc
= pc
+ insn_length(0x00000002);
667 #include "insns/c_move.h"
670 if((insn
.bits
& 0x801f) == 0x8002)
672 reg_t npc
= pc
+ insn_length(0x00008002);
673 #include "insns/c_j.h"
676 throw trap_illegal_instruction
;
679 reg_t
processor_t::opcode_func_30c(insn_t insn
, reg_t pc
)
681 reg_t npc
= pc
+ insn_length(0x0000000c);
682 #include "insns/c_sd.h"
686 reg_t
processor_t::opcode_func_316(insn_t insn
, reg_t pc
)
688 reg_t npc
= pc
+ insn_length(0x00000016);
689 #include "insns/c_fsw.h"
693 reg_t
processor_t::opcode_func_320(insn_t insn
, reg_t pc
)
695 reg_t npc
= pc
+ insn_length(0x00000000);
696 #include "insns/c_li.h"
700 reg_t
processor_t::opcode_func_32a(insn_t insn
, reg_t pc
)
702 reg_t npc
= pc
+ insn_length(0x0000000a);
703 #include "insns/c_lw.h"
707 reg_t
processor_t::opcode_func_334(insn_t insn
, reg_t pc
)
709 reg_t npc
= pc
+ insn_length(0x00000014);
710 #include "insns/c_flw.h"
714 reg_t
processor_t::opcode_func_33e(insn_t insn
, reg_t pc
)
716 throw trap_illegal_instruction
;
719 reg_t
processor_t::opcode_func_348(insn_t insn
, reg_t pc
)
721 reg_t npc
= pc
+ insn_length(0x00000008);
722 #include "insns/c_swsp.h"
726 reg_t
processor_t::opcode_func_352(insn_t insn
, reg_t pc
)
728 if((insn
.bits
& 0x801f) == 0x12)
730 reg_t npc
= pc
+ insn_length(0x00000012);
731 #include "insns/c_lw0.h"
734 if((insn
.bits
& 0x801f) == 0x8012)
736 reg_t npc
= pc
+ insn_length(0x00008012);
737 #include "insns/c_ld0.h"
740 throw trap_illegal_instruction
;
743 reg_t
processor_t::opcode_func_35c(insn_t insn
, reg_t pc
)
745 reg_t npc
= pc
+ insn_length(0x0000031c);
746 #include "insns/c_and3.h"
750 reg_t
processor_t::opcode_func_366(insn_t insn
, reg_t pc
)
752 reg_t npc
= pc
+ insn_length(0x00000006);
753 #include "insns/c_sdsp.h"
757 reg_t
processor_t::opcode_func_370(insn_t insn
, reg_t pc
)
759 reg_t npc
= pc
+ insn_length(0x00000010);
760 #include "insns/c_beq.h"
764 reg_t
processor_t::opcode_func_37a(insn_t insn
, reg_t pc
)
766 if((insn
.bits
& 0x801f) == 0x801a)
768 reg_t npc
= pc
+ insn_length(0x0000801a);
769 #include "insns/c_sub.h"
772 if((insn
.bits
& 0x801f) == 0x1a)
774 reg_t npc
= pc
+ insn_length(0x0000001a);
775 #include "insns/c_add.h"
778 throw trap_illegal_instruction
;
781 reg_t
processor_t::opcode_func_384(insn_t insn
, reg_t pc
)
783 reg_t npc
= pc
+ insn_length(0x00000004);
784 #include "insns/c_ldsp.h"
788 reg_t
processor_t::opcode_func_38e(insn_t insn
, reg_t pc
)
790 throw trap_illegal_instruction
;
793 reg_t
processor_t::opcode_func_398(insn_t insn
, reg_t pc
)
795 reg_t npc
= pc
+ insn_length(0x00000018);
796 #include "insns/c_fsd.h"
800 reg_t
processor_t::opcode_func_3a2(insn_t insn
, reg_t pc
)
802 if((insn
.bits
& 0x801f) == 0x2)
804 reg_t npc
= pc
+ insn_length(0x00000002);
805 #include "insns/c_move.h"
808 if((insn
.bits
& 0x801f) == 0x8002)
810 reg_t npc
= pc
+ insn_length(0x00008002);
811 #include "insns/c_j.h"
814 throw trap_illegal_instruction
;
817 reg_t
processor_t::opcode_func_3ac(insn_t insn
, reg_t pc
)
819 reg_t npc
= pc
+ insn_length(0x0000000c);
820 #include "insns/c_sd.h"
824 reg_t
processor_t::opcode_func_3b6(insn_t insn
, reg_t pc
)
826 reg_t npc
= pc
+ insn_length(0x00000016);
827 #include "insns/c_fsw.h"
831 reg_t
processor_t::opcode_func_3c0(insn_t insn
, reg_t pc
)
833 reg_t npc
= pc
+ insn_length(0x00000000);
834 #include "insns/c_li.h"
838 reg_t
processor_t::opcode_func_3ca(insn_t insn
, reg_t pc
)
840 reg_t npc
= pc
+ insn_length(0x0000000a);
841 #include "insns/c_lw.h"
845 reg_t
processor_t::opcode_func_3d4(insn_t insn
, reg_t pc
)
847 reg_t npc
= pc
+ insn_length(0x00000014);
848 #include "insns/c_flw.h"
852 reg_t
processor_t::opcode_func_3de(insn_t insn
, reg_t pc
)
854 throw trap_illegal_instruction
;
857 reg_t
processor_t::opcode_func_3e8(insn_t insn
, reg_t pc
)
859 reg_t npc
= pc
+ insn_length(0x00000008);
860 #include "insns/c_swsp.h"
864 reg_t
processor_t::opcode_func_3f2(insn_t insn
, reg_t pc
)
866 if((insn
.bits
& 0x801f) == 0x12)
868 reg_t npc
= pc
+ insn_length(0x00000012);
869 #include "insns/c_lw0.h"
872 if((insn
.bits
& 0x801f) == 0x8012)
874 reg_t npc
= pc
+ insn_length(0x00008012);
875 #include "insns/c_ld0.h"
878 throw trap_illegal_instruction
;
881 reg_t
processor_t::opcode_func_3fc(insn_t insn
, reg_t pc
)
883 reg_t npc
= pc
+ insn_length(0x0000031c);
884 #include "insns/c_and3.h"