Lines Matching defs:inst
77 uint_t inst, op3, asi = 0;
94 inst = fetch_user_instr((caddr_t)rp->r_pc);
96 op3 = (inst >> 19) & 0x3f;
97 rd = (inst >> 25) & 0x1f;
98 rs1 = (inst >> 14) & 0x1f;
99 rs2 = inst & 0x1f;
100 floatflg = (inst >> 24) & 1;
101 immflg = (inst >> 13) & 1;
105 if ((inst >> 30) != 3)
109 if ((inst & 0xc1680000) == 0xc0680000)
113 if ((inst & 0xc1e00000) == 0xc1e00000)
117 switch ((inst >> 19) & 3) { /* map size bits to a number */
145 int sz_bits = (inst >> 19) & 0xf;
178 asi = (inst >> 5) & 0xff;
211 (void *)rp->r_pc, inst);
212 printf("type %s", (((inst >> 21) & 1) ? "st" : "ld"));
213 if (((inst >> 21) & 1) == 0)
214 printf(" %s", (((inst >> 22) & 1) ?
218 rd, op3, rs1, rs2, (inst & 0x1fff));
231 imm = inst & 0x1fff; /* mask out immediate field */
262 if ((inst >> 21) & 1) { /* store */
401 if (((inst >> 22) & 1) && ((data.c[7] >> 7) & 1)) {
429 if (((inst >> 22) & 1) && ((data.s[3] >> 15) & 1)) {
453 if (((inst >> 22) & 1) && ((data.i[1] >> 31) & 1)) {
563 uint_t inst, op3, asi = 0;
576 inst = fetch_user_instr((caddr_t)rp->r_pc);
578 inst = *(uint_t *)rp->r_pc;
580 op3 = (inst >> 19) & 0x3f;
581 rd = (inst >> 25) & 0x1f;
582 rs1 = (inst >> 14) & 0x1f;
583 rs2 = inst & 0x1f;
584 immflg = (inst >> 13) & 1;
596 asi = (inst >> 5) & 0xff;
636 imm = inst & 0x1fff; /* mask out immediate field */
671 if ((inst >> 21) & 1) { /* store */
718 simulate_popc(struct regs *rp, caddr_t *badaddr, uint_t inst)
724 rd = (inst >> 25) & 0x1f;
725 rs1 = (inst >> 14) & 0x1f;
726 rs2 = inst & 0x1f;
727 immflg = (inst >> 13) & 1;
737 imm = inst & 0x1fff; /* mask out immediate field */
763 simulate_mulscc(struct regs *rp, caddr_t *badaddr, uint_t inst)
774 if ((inst >> 13) & 1) { /* immediate */
775 d64 = inst & 0x1fff;
782 if (inst & 0x1fe0) {
785 rs2 = inst & 0x1f;
792 rs1 = (inst >> 14) & 0x1f;
829 rd = (inst >> 25) & 0x1f;
847 uint_t inst, optype, op3, asi;
862 inst = fetch_user_instr(addr);
863 if (inst == (uint_t)-1) {
880 inst != mpcb->mpcb_illexcinsn)
883 mpcb->mpcb_illexcinsn = inst;
886 i = (inst >> 13) & 0x1;
887 rd = (inst >> 25) & 0x1f;
888 optype = (inst >> 30) & 0x3;
889 op3 = (inst >> 19) & 0x3f;
890 ignor = (inst >> 5) & 0xff;
891 if (IS_IBIT_SET(inst)) {
916 return (simulate_popc(rp, badaddr, inst));
920 return (simulate_mulscc(rp, badaddr, inst));
968 inst &= ~(0x1f << 25);
970 inst &= ~(0xff << 5);
974 inst &= ~(0xff << 5);
975 } else if (i == 1 && (((inst >> 7) & 0x3f) != 0)) {
976 inst &= ~(0x3f << 7);
986 inst &= ~(0xff << 5);
994 inst &= ~(0x1f << 25);
997 rs1 = ((inst >> 14) & 0x1f);
1011 if ((ignor = (inst & 0x3fff)) != 0)
1012 inst &= ~(0x3fff);
1019 inst &= ~(0xff << 5);
1058 inst &= ~(0xff << 5);
1071 inst &= ~(0x1f << 25);
1073 inst &= ~(0xff << 5);
1078 inst &= ~(0xff << 5);
1131 *(uint_t *)(ka + (uintptr_t)(rp->r_pc % PAGESIZE)) = inst;
1147 uint_t inst, op, op3, rd, rs1, i;
1150 inst = fetch_user_instr((caddr_t)rp->r_pc);
1151 op = (inst >> 30) & 0x3;
1152 rd = (inst >> 25) & 0x1F;
1153 op3 = (inst >> 19) & 0x3F;
1154 i = (inst >> 13) & 0x1;
1161 rs1 = (inst >> 14) & 0x1F;
1315 uint_t inst;
1324 inst = fetch_user_instr((caddr_t)rp->r_pc);
1326 inst = *(uint_t *)rp->r_pc;
1328 rd = (inst >> 25) & 0x1f;
1329 rs1 = (inst >> 14) & 0x1f;
1330 rs2 = inst & 0x1f;
1331 floatflg = (inst >> 24) & 1;
1332 immflg = (inst >> 13) & 1;
1335 switch ((inst >> 19) & 3) { /* map size bits to a number */
1351 switch ((inst >> 19) & 0xf) { /* map size bits to a number */
1386 imm = inst & 0x1fff; /* mask out immediate field */
1421 uint_t inst, op3, asi;
1444 inst = fetch_user_instr((caddr_t)rp->r_pc);
1446 op3 = (inst >> 19) & 0x3f;
1447 rd = (inst >> 25) & 0x1f;
1448 rs1 = (inst >> 14) & 0x1f;
1449 rs2 = inst & 0x1f;
1450 floatflg = (inst >> 24) & 1;
1451 immflg = (inst >> 13) & 1;
1454 if ((inst >> 30) != 3)
1461 asi = (inst >> 5) & 0xff;
1526 imm = inst & 0x1fff; /* mask out immediate field */