11a3c04dd2af3107f0e49d60750460ba880285c5
1 #include "insn_includes.h"
3 reg_t
processor_t::opcode_func_006(insn_t insn
, reg_t pc
)
5 reg_t npc
= pc
+ insn_length(0x00000006);
6 #include "insns/c_sdsp.h"
10 reg_t
processor_t::opcode_func_010(insn_t insn
, reg_t pc
)
12 reg_t npc
= pc
+ insn_length(0x00000010);
13 #include "insns/c_beq.h"
17 reg_t
processor_t::opcode_func_01a(insn_t insn
, reg_t pc
)
19 if((insn
.bits
& 0x801f) == 0x801a)
21 reg_t npc
= pc
+ insn_length(0x0000801a);
22 #include "insns/c_sub.h"
25 if((insn
.bits
& 0x801f) == 0x1a)
27 reg_t npc
= pc
+ insn_length(0x0000001a);
28 #include "insns/c_add.h"
31 throw trap_illegal_instruction
;
34 reg_t
processor_t::opcode_func_024(insn_t insn
, reg_t pc
)
36 reg_t npc
= pc
+ insn_length(0x00000004);
37 #include "insns/c_ldsp.h"
41 reg_t
processor_t::opcode_func_02e(insn_t insn
, reg_t pc
)
43 throw trap_illegal_instruction
;
46 reg_t
processor_t::opcode_func_038(insn_t insn
, reg_t pc
)
48 reg_t npc
= pc
+ insn_length(0x00000018);
49 #include "insns/c_fsd.h"
53 reg_t
processor_t::opcode_func_042(insn_t insn
, reg_t pc
)
55 if((insn
.bits
& 0x801f) == 0x2)
57 reg_t npc
= pc
+ insn_length(0x00000002);
58 #include "insns/c_move.h"
61 if((insn
.bits
& 0x801f) == 0x8002)
63 reg_t npc
= pc
+ insn_length(0x00008002);
64 #include "insns/c_j.h"
67 throw trap_illegal_instruction
;
70 reg_t
processor_t::opcode_func_04c(insn_t insn
, reg_t pc
)
72 reg_t npc
= pc
+ insn_length(0x0000000c);
73 #include "insns/c_sd.h"
77 reg_t
processor_t::opcode_func_056(insn_t insn
, reg_t pc
)
79 reg_t npc
= pc
+ insn_length(0x00000016);
80 #include "insns/c_fsw.h"
84 reg_t
processor_t::opcode_func_060(insn_t insn
, reg_t pc
)
86 reg_t npc
= pc
+ insn_length(0x00000000);
87 #include "insns/c_li.h"
91 reg_t
processor_t::opcode_func_06a(insn_t insn
, reg_t pc
)
93 reg_t npc
= pc
+ insn_length(0x0000000a);
94 #include "insns/c_lw.h"
98 reg_t
processor_t::opcode_func_074(insn_t insn
, reg_t pc
)
100 reg_t npc
= pc
+ insn_length(0x00000014);
101 #include "insns/c_flw.h"
105 reg_t
processor_t::opcode_func_07e(insn_t insn
, reg_t pc
)
107 throw trap_illegal_instruction
;
110 reg_t
processor_t::opcode_func_088(insn_t insn
, reg_t pc
)
112 reg_t npc
= pc
+ insn_length(0x00000008);
113 #include "insns/c_swsp.h"
117 reg_t
processor_t::opcode_func_092(insn_t insn
, reg_t pc
)
119 if((insn
.bits
& 0x801f) == 0x12)
121 reg_t npc
= pc
+ insn_length(0x00000012);
122 #include "insns/c_lw0.h"
125 if((insn
.bits
& 0x801f) == 0x8012)
127 reg_t npc
= pc
+ insn_length(0x00008012);
128 #include "insns/c_ld0.h"
131 throw trap_illegal_instruction
;
134 reg_t
processor_t::opcode_func_09c(insn_t insn
, reg_t pc
)
136 reg_t npc
= pc
+ insn_length(0x0000001c);
137 #include "insns/c_add3.h"
141 reg_t
processor_t::opcode_func_0a6(insn_t insn
, reg_t pc
)
143 reg_t npc
= pc
+ insn_length(0x00000006);
144 #include "insns/c_sdsp.h"
148 reg_t
processor_t::opcode_func_0b0(insn_t insn
, reg_t pc
)
150 reg_t npc
= pc
+ insn_length(0x00000010);
151 #include "insns/c_beq.h"
155 reg_t
processor_t::opcode_func_0ba(insn_t insn
, reg_t pc
)
157 if((insn
.bits
& 0x801f) == 0x801a)
159 reg_t npc
= pc
+ insn_length(0x0000801a);
160 #include "insns/c_sub.h"
163 if((insn
.bits
& 0x801f) == 0x1a)
165 reg_t npc
= pc
+ insn_length(0x0000001a);
166 #include "insns/c_add.h"
169 throw trap_illegal_instruction
;
172 reg_t
processor_t::opcode_func_0c4(insn_t insn
, reg_t pc
)
174 reg_t npc
= pc
+ insn_length(0x00000004);
175 #include "insns/c_ldsp.h"
179 reg_t
processor_t::opcode_func_0ce(insn_t insn
, reg_t pc
)
181 throw trap_illegal_instruction
;
184 reg_t
processor_t::opcode_func_0d8(insn_t insn
, reg_t pc
)
186 reg_t npc
= pc
+ insn_length(0x00000018);
187 #include "insns/c_fsd.h"
191 reg_t
processor_t::opcode_func_0e2(insn_t insn
, reg_t pc
)
193 if((insn
.bits
& 0x801f) == 0x2)
195 reg_t npc
= pc
+ insn_length(0x00000002);
196 #include "insns/c_move.h"
199 if((insn
.bits
& 0x801f) == 0x8002)
201 reg_t npc
= pc
+ insn_length(0x00008002);
202 #include "insns/c_j.h"
205 throw trap_illegal_instruction
;
208 reg_t
processor_t::opcode_func_0ec(insn_t insn
, reg_t pc
)
210 reg_t npc
= pc
+ insn_length(0x0000000c);
211 #include "insns/c_sd.h"
215 reg_t
processor_t::opcode_func_0f6(insn_t insn
, reg_t pc
)
217 reg_t npc
= pc
+ insn_length(0x00000016);
218 #include "insns/c_fsw.h"
222 reg_t
processor_t::opcode_func_100(insn_t insn
, reg_t pc
)
224 reg_t npc
= pc
+ insn_length(0x00000000);
225 #include "insns/c_li.h"
229 reg_t
processor_t::opcode_func_10a(insn_t insn
, reg_t pc
)
231 reg_t npc
= pc
+ insn_length(0x0000000a);
232 #include "insns/c_lw.h"
236 reg_t
processor_t::opcode_func_114(insn_t insn
, reg_t pc
)
238 reg_t npc
= pc
+ insn_length(0x00000014);
239 #include "insns/c_flw.h"
243 reg_t
processor_t::opcode_func_11e(insn_t insn
, reg_t pc
)
245 throw trap_illegal_instruction
;
248 reg_t
processor_t::opcode_func_128(insn_t insn
, reg_t pc
)
250 reg_t npc
= pc
+ insn_length(0x00000008);
251 #include "insns/c_swsp.h"
255 reg_t
processor_t::opcode_func_132(insn_t insn
, reg_t pc
)
257 if((insn
.bits
& 0x801f) == 0x12)
259 reg_t npc
= pc
+ insn_length(0x00000012);
260 #include "insns/c_lw0.h"
263 if((insn
.bits
& 0x801f) == 0x8012)
265 reg_t npc
= pc
+ insn_length(0x00008012);
266 #include "insns/c_ld0.h"
269 throw trap_illegal_instruction
;
272 reg_t
processor_t::opcode_func_13c(insn_t insn
, reg_t pc
)
274 reg_t npc
= pc
+ insn_length(0x0000011c);
275 #include "insns/c_sub3.h"
279 reg_t
processor_t::opcode_func_146(insn_t insn
, reg_t pc
)
281 reg_t npc
= pc
+ insn_length(0x00000006);
282 #include "insns/c_sdsp.h"
286 reg_t
processor_t::opcode_func_150(insn_t insn
, reg_t pc
)
288 reg_t npc
= pc
+ insn_length(0x00000010);
289 #include "insns/c_beq.h"
293 reg_t
processor_t::opcode_func_15a(insn_t insn
, reg_t pc
)
295 if((insn
.bits
& 0x801f) == 0x801a)
297 reg_t npc
= pc
+ insn_length(0x0000801a);
298 #include "insns/c_sub.h"
301 if((insn
.bits
& 0x801f) == 0x1a)
303 reg_t npc
= pc
+ insn_length(0x0000001a);
304 #include "insns/c_add.h"
307 throw trap_illegal_instruction
;
310 reg_t
processor_t::opcode_func_164(insn_t insn
, reg_t pc
)
312 reg_t npc
= pc
+ insn_length(0x00000004);
313 #include "insns/c_ldsp.h"
317 reg_t
processor_t::opcode_func_16e(insn_t insn
, reg_t pc
)
319 throw trap_illegal_instruction
;
322 reg_t
processor_t::opcode_func_178(insn_t insn
, reg_t pc
)
324 reg_t npc
= pc
+ insn_length(0x00000018);
325 #include "insns/c_fsd.h"
329 reg_t
processor_t::opcode_func_182(insn_t insn
, reg_t pc
)
331 if((insn
.bits
& 0x801f) == 0x2)
333 reg_t npc
= pc
+ insn_length(0x00000002);
334 #include "insns/c_move.h"
337 if((insn
.bits
& 0x801f) == 0x8002)
339 reg_t npc
= pc
+ insn_length(0x00008002);
340 #include "insns/c_j.h"
343 throw trap_illegal_instruction
;
346 reg_t
processor_t::opcode_func_18c(insn_t insn
, reg_t pc
)
348 reg_t npc
= pc
+ insn_length(0x0000000c);
349 #include "insns/c_sd.h"
353 reg_t
processor_t::opcode_func_196(insn_t insn
, reg_t pc
)
355 reg_t npc
= pc
+ insn_length(0x00000016);
356 #include "insns/c_fsw.h"
360 reg_t
processor_t::opcode_func_1a0(insn_t insn
, reg_t pc
)
362 reg_t npc
= pc
+ insn_length(0x00000000);
363 #include "insns/c_li.h"
367 reg_t
processor_t::opcode_func_1aa(insn_t insn
, reg_t pc
)
369 reg_t npc
= pc
+ insn_length(0x0000000a);
370 #include "insns/c_lw.h"
374 reg_t
processor_t::opcode_func_1b4(insn_t insn
, reg_t pc
)
376 reg_t npc
= pc
+ insn_length(0x00000014);
377 #include "insns/c_flw.h"
381 reg_t
processor_t::opcode_func_1be(insn_t insn
, reg_t pc
)
383 throw trap_illegal_instruction
;
386 reg_t
processor_t::opcode_func_1c8(insn_t insn
, reg_t pc
)
388 reg_t npc
= pc
+ insn_length(0x00000008);
389 #include "insns/c_swsp.h"
393 reg_t
processor_t::opcode_func_1d2(insn_t insn
, reg_t pc
)
395 if((insn
.bits
& 0x801f) == 0x12)
397 reg_t npc
= pc
+ insn_length(0x00000012);
398 #include "insns/c_lw0.h"
401 if((insn
.bits
& 0x801f) == 0x8012)
403 reg_t npc
= pc
+ insn_length(0x00008012);
404 #include "insns/c_ld0.h"
407 throw trap_illegal_instruction
;
410 reg_t
processor_t::opcode_func_1dc(insn_t insn
, reg_t pc
)
412 reg_t npc
= pc
+ insn_length(0x0000011c);
413 #include "insns/c_sub3.h"
417 reg_t
processor_t::opcode_func_1e6(insn_t insn
, reg_t pc
)
419 reg_t npc
= pc
+ insn_length(0x00000006);
420 #include "insns/c_sdsp.h"
424 reg_t
processor_t::opcode_func_1f0(insn_t insn
, reg_t pc
)
426 reg_t npc
= pc
+ insn_length(0x00000010);
427 #include "insns/c_beq.h"
431 reg_t
processor_t::opcode_func_1fa(insn_t insn
, reg_t pc
)
433 if((insn
.bits
& 0x801f) == 0x801a)
435 reg_t npc
= pc
+ insn_length(0x0000801a);
436 #include "insns/c_sub.h"
439 if((insn
.bits
& 0x801f) == 0x1a)
441 reg_t npc
= pc
+ insn_length(0x0000001a);
442 #include "insns/c_add.h"
445 throw trap_illegal_instruction
;
448 reg_t
processor_t::opcode_func_204(insn_t insn
, reg_t pc
)
450 reg_t npc
= pc
+ insn_length(0x00000004);
451 #include "insns/c_ldsp.h"
455 reg_t
processor_t::opcode_func_20e(insn_t insn
, reg_t pc
)
457 throw trap_illegal_instruction
;
460 reg_t
processor_t::opcode_func_218(insn_t insn
, reg_t pc
)
462 reg_t npc
= pc
+ insn_length(0x00000018);
463 #include "insns/c_fsd.h"
467 reg_t
processor_t::opcode_func_222(insn_t insn
, reg_t pc
)
469 if((insn
.bits
& 0x801f) == 0x2)
471 reg_t npc
= pc
+ insn_length(0x00000002);
472 #include "insns/c_move.h"
475 if((insn
.bits
& 0x801f) == 0x8002)
477 reg_t npc
= pc
+ insn_length(0x00008002);
478 #include "insns/c_j.h"
481 throw trap_illegal_instruction
;
484 reg_t
processor_t::opcode_func_22c(insn_t insn
, reg_t pc
)
486 reg_t npc
= pc
+ insn_length(0x0000000c);
487 #include "insns/c_sd.h"
491 reg_t
processor_t::opcode_func_236(insn_t insn
, reg_t pc
)
493 reg_t npc
= pc
+ insn_length(0x00000016);
494 #include "insns/c_fsw.h"
498 reg_t
processor_t::opcode_func_240(insn_t insn
, reg_t pc
)
500 reg_t npc
= pc
+ insn_length(0x00000000);
501 #include "insns/c_li.h"
505 reg_t
processor_t::opcode_func_24a(insn_t insn
, reg_t pc
)
507 reg_t npc
= pc
+ insn_length(0x0000000a);
508 #include "insns/c_lw.h"
512 reg_t
processor_t::opcode_func_254(insn_t insn
, reg_t pc
)
514 reg_t npc
= pc
+ insn_length(0x00000014);
515 #include "insns/c_flw.h"
519 reg_t
processor_t::opcode_func_25e(insn_t insn
, reg_t pc
)
521 throw trap_illegal_instruction
;
524 reg_t
processor_t::opcode_func_268(insn_t insn
, reg_t pc
)
526 reg_t npc
= pc
+ insn_length(0x00000008);
527 #include "insns/c_swsp.h"
531 reg_t
processor_t::opcode_func_272(insn_t insn
, reg_t pc
)
533 if((insn
.bits
& 0x801f) == 0x12)
535 reg_t npc
= pc
+ insn_length(0x00000012);
536 #include "insns/c_lw0.h"
539 if((insn
.bits
& 0x801f) == 0x8012)
541 reg_t npc
= pc
+ insn_length(0x00008012);
542 #include "insns/c_ld0.h"
545 throw trap_illegal_instruction
;
548 reg_t
processor_t::opcode_func_27c(insn_t insn
, reg_t pc
)
550 reg_t npc
= pc
+ insn_length(0x0000021c);
551 #include "insns/c_or3.h"
555 reg_t
processor_t::opcode_func_286(insn_t insn
, reg_t pc
)
557 reg_t npc
= pc
+ insn_length(0x00000006);
558 #include "insns/c_sdsp.h"
562 reg_t
processor_t::opcode_func_290(insn_t insn
, reg_t pc
)
564 reg_t npc
= pc
+ insn_length(0x00000010);
565 #include "insns/c_beq.h"
569 reg_t
processor_t::opcode_func_29a(insn_t insn
, reg_t pc
)
571 if((insn
.bits
& 0x801f) == 0x801a)
573 reg_t npc
= pc
+ insn_length(0x0000801a);
574 #include "insns/c_sub.h"
577 if((insn
.bits
& 0x801f) == 0x1a)
579 reg_t npc
= pc
+ insn_length(0x0000001a);
580 #include "insns/c_add.h"
583 throw trap_illegal_instruction
;
586 reg_t
processor_t::opcode_func_2a4(insn_t insn
, reg_t pc
)
588 reg_t npc
= pc
+ insn_length(0x00000004);
589 #include "insns/c_ldsp.h"
593 reg_t
processor_t::opcode_func_2ae(insn_t insn
, reg_t pc
)
595 throw trap_illegal_instruction
;
598 reg_t
processor_t::opcode_func_2b8(insn_t insn
, reg_t pc
)
600 reg_t npc
= pc
+ insn_length(0x00000018);
601 #include "insns/c_fsd.h"
605 reg_t
processor_t::opcode_func_2c2(insn_t insn
, reg_t pc
)
607 if((insn
.bits
& 0x801f) == 0x2)
609 reg_t npc
= pc
+ insn_length(0x00000002);
610 #include "insns/c_move.h"
613 if((insn
.bits
& 0x801f) == 0x8002)
615 reg_t npc
= pc
+ insn_length(0x00008002);
616 #include "insns/c_j.h"
619 throw trap_illegal_instruction
;
622 reg_t
processor_t::opcode_func_2cc(insn_t insn
, reg_t pc
)
624 reg_t npc
= pc
+ insn_length(0x0000000c);
625 #include "insns/c_sd.h"
629 reg_t
processor_t::opcode_func_2d6(insn_t insn
, reg_t pc
)
631 reg_t npc
= pc
+ insn_length(0x00000016);
632 #include "insns/c_fsw.h"
636 reg_t
processor_t::opcode_func_2e0(insn_t insn
, reg_t pc
)
638 reg_t npc
= pc
+ insn_length(0x00000000);
639 #include "insns/c_li.h"
643 reg_t
processor_t::opcode_func_2ea(insn_t insn
, reg_t pc
)
645 reg_t npc
= pc
+ insn_length(0x0000000a);
646 #include "insns/c_lw.h"
650 reg_t
processor_t::opcode_func_2f4(insn_t insn
, reg_t pc
)
652 reg_t npc
= pc
+ insn_length(0x00000014);
653 #include "insns/c_flw.h"
657 reg_t
processor_t::opcode_func_2fe(insn_t insn
, reg_t pc
)
659 throw trap_illegal_instruction
;
662 reg_t
processor_t::opcode_func_308(insn_t insn
, reg_t pc
)
664 reg_t npc
= pc
+ insn_length(0x00000008);
665 #include "insns/c_swsp.h"
669 reg_t
processor_t::opcode_func_312(insn_t insn
, reg_t pc
)
671 if((insn
.bits
& 0x801f) == 0x12)
673 reg_t npc
= pc
+ insn_length(0x00000012);
674 #include "insns/c_lw0.h"
677 if((insn
.bits
& 0x801f) == 0x8012)
679 reg_t npc
= pc
+ insn_length(0x00008012);
680 #include "insns/c_ld0.h"
683 throw trap_illegal_instruction
;
686 reg_t
processor_t::opcode_func_31c(insn_t insn
, reg_t pc
)
688 reg_t npc
= pc
+ insn_length(0x0000031c);
689 #include "insns/c_and3.h"
693 reg_t
processor_t::opcode_func_326(insn_t insn
, reg_t pc
)
695 reg_t npc
= pc
+ insn_length(0x00000006);
696 #include "insns/c_sdsp.h"
700 reg_t
processor_t::opcode_func_330(insn_t insn
, reg_t pc
)
702 reg_t npc
= pc
+ insn_length(0x00000010);
703 #include "insns/c_beq.h"
707 reg_t
processor_t::opcode_func_33a(insn_t insn
, reg_t pc
)
709 if((insn
.bits
& 0x801f) == 0x801a)
711 reg_t npc
= pc
+ insn_length(0x0000801a);
712 #include "insns/c_sub.h"
715 if((insn
.bits
& 0x801f) == 0x1a)
717 reg_t npc
= pc
+ insn_length(0x0000001a);
718 #include "insns/c_add.h"
721 throw trap_illegal_instruction
;
724 reg_t
processor_t::opcode_func_344(insn_t insn
, reg_t pc
)
726 reg_t npc
= pc
+ insn_length(0x00000004);
727 #include "insns/c_ldsp.h"
731 reg_t
processor_t::opcode_func_34e(insn_t insn
, reg_t pc
)
733 throw trap_illegal_instruction
;
736 reg_t
processor_t::opcode_func_358(insn_t insn
, reg_t pc
)
738 reg_t npc
= pc
+ insn_length(0x00000018);
739 #include "insns/c_fsd.h"
743 reg_t
processor_t::opcode_func_362(insn_t insn
, reg_t pc
)
745 if((insn
.bits
& 0x801f) == 0x2)
747 reg_t npc
= pc
+ insn_length(0x00000002);
748 #include "insns/c_move.h"
751 if((insn
.bits
& 0x801f) == 0x8002)
753 reg_t npc
= pc
+ insn_length(0x00008002);
754 #include "insns/c_j.h"
757 throw trap_illegal_instruction
;
760 reg_t
processor_t::opcode_func_36c(insn_t insn
, reg_t pc
)
762 reg_t npc
= pc
+ insn_length(0x0000000c);
763 #include "insns/c_sd.h"
767 reg_t
processor_t::opcode_func_376(insn_t insn
, reg_t pc
)
769 reg_t npc
= pc
+ insn_length(0x00000016);
770 #include "insns/c_fsw.h"
774 reg_t
processor_t::opcode_func_380(insn_t insn
, reg_t pc
)
776 reg_t npc
= pc
+ insn_length(0x00000000);
777 #include "insns/c_li.h"
781 reg_t
processor_t::opcode_func_38a(insn_t insn
, reg_t pc
)
783 reg_t npc
= pc
+ insn_length(0x0000000a);
784 #include "insns/c_lw.h"
788 reg_t
processor_t::opcode_func_394(insn_t insn
, reg_t pc
)
790 reg_t npc
= pc
+ insn_length(0x00000014);
791 #include "insns/c_flw.h"
795 reg_t
processor_t::opcode_func_39e(insn_t insn
, reg_t pc
)
797 throw trap_illegal_instruction
;
800 reg_t
processor_t::opcode_func_3a8(insn_t insn
, reg_t pc
)
802 reg_t npc
= pc
+ insn_length(0x00000008);
803 #include "insns/c_swsp.h"
807 reg_t
processor_t::opcode_func_3b2(insn_t insn
, reg_t pc
)
809 if((insn
.bits
& 0x801f) == 0x12)
811 reg_t npc
= pc
+ insn_length(0x00000012);
812 #include "insns/c_lw0.h"
815 if((insn
.bits
& 0x801f) == 0x8012)
817 reg_t npc
= pc
+ insn_length(0x00008012);
818 #include "insns/c_ld0.h"
821 throw trap_illegal_instruction
;
824 reg_t
processor_t::opcode_func_3bc(insn_t insn
, reg_t pc
)
826 reg_t npc
= pc
+ insn_length(0x0000031c);
827 #include "insns/c_and3.h"
831 reg_t
processor_t::opcode_func_3c6(insn_t insn
, reg_t pc
)
833 reg_t npc
= pc
+ insn_length(0x00000006);
834 #include "insns/c_sdsp.h"
838 reg_t
processor_t::opcode_func_3d0(insn_t insn
, reg_t pc
)
840 reg_t npc
= pc
+ insn_length(0x00000010);
841 #include "insns/c_beq.h"
845 reg_t
processor_t::opcode_func_3da(insn_t insn
, reg_t pc
)
847 if((insn
.bits
& 0x801f) == 0x801a)
849 reg_t npc
= pc
+ insn_length(0x0000801a);
850 #include "insns/c_sub.h"
853 if((insn
.bits
& 0x801f) == 0x1a)
855 reg_t npc
= pc
+ insn_length(0x0000001a);
856 #include "insns/c_add.h"
859 throw trap_illegal_instruction
;
862 reg_t
processor_t::opcode_func_3e4(insn_t insn
, reg_t pc
)
864 reg_t npc
= pc
+ insn_length(0x00000004);
865 #include "insns/c_ldsp.h"
869 reg_t
processor_t::opcode_func_3ee(insn_t insn
, reg_t pc
)
871 throw trap_illegal_instruction
;
874 reg_t
processor_t::opcode_func_3f8(insn_t insn
, reg_t pc
)
876 reg_t npc
= pc
+ insn_length(0x00000018);
877 #include "insns/c_fsd.h"