Lines Matching +full:2 +full:- +full:8

28 #include <asm/mips-r2-to-r6-emul.h>
55 extern const unsigned int fpucondbit[8];
65 pr_info("MIPS R2-to-R6 Emulator Enabled!"); in mipsr2emu_enable()
72 * mipsr6_emul - Emulate some frequent R2/R5/R6 instructions in delay slot
83 regs->regs[MIPSInst_RT(ir)] = in mipsr6_emul()
84 (s32)regs->regs[MIPSInst_RS(ir)] + in mipsr6_emul()
92 regs->regs[MIPSInst_RT(ir)] = in mipsr6_emul()
93 (s64)regs->regs[MIPSInst_RS(ir)] + in mipsr6_emul()
101 return -SIGFPE; in mipsr6_emul()
106 regs->regs[MIPSInst_RD(ir)] = in mipsr6_emul()
107 regs->regs[MIPSInst_RS(ir)] | in mipsr6_emul()
108 regs->regs[MIPSInst_RT(ir)]; in mipsr6_emul()
115 regs->regs[MIPSInst_RD(ir)] = in mipsr6_emul()
116 (s32)(((u32)regs->regs[MIPSInst_RT(ir)]) << in mipsr6_emul()
124 regs->regs[MIPSInst_RD(ir)] = in mipsr6_emul()
125 (s32)(((u32)regs->regs[MIPSInst_RT(ir)]) >> in mipsr6_emul()
133 regs->regs[MIPSInst_RD(ir)] = in mipsr6_emul()
134 (s32)((u32)regs->regs[MIPSInst_RS(ir)] + in mipsr6_emul()
135 (u32)regs->regs[MIPSInst_RT(ir)]); in mipsr6_emul()
142 regs->regs[MIPSInst_RD(ir)] = in mipsr6_emul()
143 (s32)((u32)regs->regs[MIPSInst_RS(ir)] - in mipsr6_emul()
144 (u32)regs->regs[MIPSInst_RT(ir)]); in mipsr6_emul()
151 regs->regs[MIPSInst_RD(ir)] = in mipsr6_emul()
152 (s64)(((u64)regs->regs[MIPSInst_RT(ir)]) << in mipsr6_emul()
160 regs->regs[MIPSInst_RD(ir)] = in mipsr6_emul()
161 (s64)(((u64)regs->regs[MIPSInst_RT(ir)]) >> in mipsr6_emul()
169 regs->regs[MIPSInst_RD(ir)] = in mipsr6_emul()
170 (u64)regs->regs[MIPSInst_RS(ir)] + in mipsr6_emul()
171 (u64)regs->regs[MIPSInst_RT(ir)]; in mipsr6_emul()
178 regs->regs[MIPSInst_RD(ir)] = in mipsr6_emul()
179 (s64)((u64)regs->regs[MIPSInst_RS(ir)] - in mipsr6_emul()
180 (u64)regs->regs[MIPSInst_RT(ir)]); in mipsr6_emul()
193 * movf_func - Emulate a MOVF instruction
204 csr = current->thread.fpu.fcr31; in movf_func()
205 cond = fpucondbit[MIPSInst_RT(ir) >> 2]; in movf_func()
208 regs->regs[MIPSInst_RD(ir)] = regs->regs[MIPSInst_RS(ir)]; in movf_func()
216 * movt_func - Emulate a MOVT instruction
227 csr = current->thread.fpu.fcr31; in movt_func()
228 cond = fpucondbit[MIPSInst_RT(ir) >> 2]; in movt_func()
231 regs->regs[MIPSInst_RD(ir)] = regs->regs[MIPSInst_RS(ir)]; in movt_func()
239 * jr_func - Emulate a JR instruction.
257 nepc = regs->cp0_epc; in jr_func()
259 regs->cp0_epc -= 4; in jr_func()
260 epc = regs->cp0_epc; in jr_func()
268 cepc = regs->cp0_epc; in jr_func()
280 * Negative err means FPU instruction in BD-slot, in jr_func()
281 * Zero err means 'BD-slot emulation done' in jr_func()
286 regs->cp0_epc = nepc; in jr_func()
298 * movz_func - Emulate a MOVZ instruction
306 if (((regs->regs[MIPSInst_RT(ir)]) == 0) && MIPSInst_RD(ir)) in movz_func()
307 regs->regs[MIPSInst_RD(ir)] = regs->regs[MIPSInst_RS(ir)]; in movz_func()
314 * movn_func - Emulate a MOVZ instruction
322 if (((regs->regs[MIPSInst_RT(ir)]) != 0) && MIPSInst_RD(ir)) in movn_func()
323 regs->regs[MIPSInst_RD(ir)] = regs->regs[MIPSInst_RS(ir)]; in movn_func()
330 * mfhi_func - Emulate a MFHI instruction
339 regs->regs[MIPSInst_RD(ir)] = regs->hi; in mfhi_func()
347 * mthi_func - Emulate a MTHI instruction
355 regs->hi = regs->regs[MIPSInst_RS(ir)]; in mthi_func()
363 * mflo_func - Emulate a MFLO instruction
372 regs->regs[MIPSInst_RD(ir)] = regs->lo; in mflo_func()
380 * mtlo_func - Emulate a MTLO instruction
388 regs->lo = regs->regs[MIPSInst_RS(ir)]; in mtlo_func()
396 * mult_func - Emulate a MULT instruction
407 rt = regs->regs[MIPSInst_RT(ir)]; in mult_func()
408 rs = regs->regs[MIPSInst_RS(ir)]; in mult_func()
412 regs->lo = (s64)rs; in mult_func()
415 regs->hi = res; in mult_func()
423 * multu_func - Emulate a MULTU instruction
434 rt = regs->regs[MIPSInst_RT(ir)]; in multu_func()
435 rs = regs->regs[MIPSInst_RS(ir)]; in multu_func()
438 regs->lo = (s64)(s32)rt; in multu_func()
439 regs->hi = (s64)(s32)(res >> 32); in multu_func()
447 * div_func - Emulate a DIV instruction
457 rt = regs->regs[MIPSInst_RT(ir)]; in div_func()
458 rs = regs->regs[MIPSInst_RS(ir)]; in div_func()
460 regs->lo = (s64)(rs / rt); in div_func()
461 regs->hi = (s64)(rs % rt); in div_func()
469 * divu_func - Emulate a DIVU instruction
479 rt = regs->regs[MIPSInst_RT(ir)]; in divu_func()
480 rs = regs->regs[MIPSInst_RS(ir)]; in divu_func()
482 regs->lo = (s64)(rs / rt); in divu_func()
483 regs->hi = (s64)(rs % rt); in divu_func()
491 * dmult_func - Emulate a DMULT instruction
495 * Returns 0 on success or SIGILL for 32-bit kernels.
505 rt = regs->regs[MIPSInst_RT(ir)]; in dmult_func()
506 rs = regs->regs[MIPSInst_RS(ir)]; in dmult_func()
509 regs->lo = res; in dmult_func()
511 "dmuh %0, %1, %2\t\n" in dmult_func()
515 regs->hi = res; in dmult_func()
523 * dmultu_func - Emulate a DMULTU instruction
527 * Returns 0 on success or SIGILL for 32-bit kernels.
537 rt = regs->regs[MIPSInst_RT(ir)]; in dmultu_func()
538 rs = regs->regs[MIPSInst_RS(ir)]; in dmultu_func()
541 regs->lo = res; in dmultu_func()
543 "dmuhu %0, %1, %2\t\n" in dmultu_func()
547 regs->hi = res; in dmultu_func()
555 * ddiv_func - Emulate a DDIV instruction
559 * Returns 0 on success or SIGILL for 32-bit kernels.
568 rt = regs->regs[MIPSInst_RT(ir)]; in ddiv_func()
569 rs = regs->regs[MIPSInst_RS(ir)]; in ddiv_func()
571 regs->lo = rs / rt; in ddiv_func()
572 regs->hi = rs % rt; in ddiv_func()
580 * ddivu_func - Emulate a DDIVU instruction
584 * Returns 0 on success or SIGILL for 32-bit kernels.
593 rt = regs->regs[MIPSInst_RT(ir)]; in ddivu_func()
594 rs = regs->regs[MIPSInst_RS(ir)]; in ddivu_func()
596 regs->lo = rs / rt; in ddivu_func()
597 regs->hi = rs % rt; in ddivu_func()
627 * madd_func - Emulate a MADD instruction
638 rt = regs->regs[MIPSInst_RT(ir)]; in madd_func()
639 rs = regs->regs[MIPSInst_RS(ir)]; in madd_func()
641 rt = regs->hi; in madd_func()
642 rs = regs->lo; in madd_func()
646 regs->lo = (s64)rt; in madd_func()
648 regs->hi = (s64)rs; in madd_func()
656 * maddu_func - Emulate a MADDU instruction
667 rt = regs->regs[MIPSInst_RT(ir)]; in maddu_func()
668 rs = regs->regs[MIPSInst_RS(ir)]; in maddu_func()
670 rt = regs->hi; in maddu_func()
671 rs = regs->lo; in maddu_func()
675 regs->lo = (s64)(s32)rt; in maddu_func()
677 regs->hi = (s64)(s32)rs; in maddu_func()
685 * msub_func - Emulate a MSUB instruction
696 rt = regs->regs[MIPSInst_RT(ir)]; in msub_func()
697 rs = regs->regs[MIPSInst_RS(ir)]; in msub_func()
699 rt = regs->hi; in msub_func()
700 rs = regs->lo; in msub_func()
701 res = ((((s64)rt) << 32) | (u32)rs) - res; in msub_func()
704 regs->lo = (s64)rt; in msub_func()
706 regs->hi = (s64)rs; in msub_func()
714 * msubu_func - Emulate a MSUBU instruction
725 rt = regs->regs[MIPSInst_RT(ir)]; in msubu_func()
726 rs = regs->regs[MIPSInst_RS(ir)]; in msubu_func()
728 rt = regs->hi; in msubu_func()
729 rs = regs->lo; in msubu_func()
730 res = ((((s64)rt) << 32) | (u32)rs) - res; in msubu_func()
733 regs->lo = (s64)(s32)rt; in msubu_func()
735 regs->hi = (s64)(s32)rs; in msubu_func()
743 * mul_func - Emulate a MUL instruction
756 rt = regs->regs[MIPSInst_RT(ir)]; in mul_func()
757 rs = regs->regs[MIPSInst_RS(ir)]; in mul_func()
761 regs->regs[MIPSInst_RD(ir)] = (s64)rs; in mul_func()
769 * clz_func - Emulate a CLZ instruction
783 rs = regs->regs[MIPSInst_RS(ir)]; in clz_func()
785 regs->regs[MIPSInst_RD(ir)] = res; in clz_func()
793 * clo_func - Emulate a CLO instruction
808 rs = regs->regs[MIPSInst_RS(ir)]; in clo_func()
810 regs->regs[MIPSInst_RD(ir)] = res; in clo_func()
818 * dclz_func - Emulate a DCLZ instruction
835 rs = regs->regs[MIPSInst_RS(ir)]; in dclz_func()
837 regs->regs[MIPSInst_RD(ir)] = res; in dclz_func()
845 * dclo_func - Emulate a DCLO instruction
862 rs = regs->regs[MIPSInst_RS(ir)]; in dclo_func()
864 regs->regs[MIPSInst_RD(ir)] = res; in dclo_func()
891 for (p = table; p->func; p++) { in mipsr2_find_op_func()
892 if ((inst & p->mask) == p->code) { in mipsr2_find_op_func()
893 err = (p->func)(regs, inst); in mipsr2_find_op_func()
917 r31 = regs->regs[31]; in mipsr2_decoder()
918 epc = regs->cp0_epc; in mipsr2_decoder()
932 regs->cp0_cause |= CAUSEF_BD; in mipsr2_decoder()
944 if ((long)regs->regs[rs] >= MIPSInst_SIMM(inst)) in mipsr2_decoder()
951 if (regs->regs[rs] >= MIPSInst_UIMM(inst)) in mipsr2_decoder()
958 if ((long)regs->regs[rs] < MIPSInst_SIMM(inst)) in mipsr2_decoder()
965 if (regs->regs[rs] < MIPSInst_UIMM(inst)) in mipsr2_decoder()
972 if (regs->regs[rs] == MIPSInst_SIMM(inst)) in mipsr2_decoder()
979 if (regs->regs[rs] != MIPSInst_SIMM(inst)) in mipsr2_decoder()
993 regs->regs[31] = r31; in mipsr2_decoder()
994 regs->cp0_epc = epc; in mipsr2_decoder()
1000 cpc = regs->cp0_epc; in mipsr2_decoder()
1031 regs->cp0_cause |= CAUSEF_BD; in mipsr2_decoder()
1050 regs->regs[31] = r31; in mipsr2_decoder()
1051 regs->cp0_epc = epc; in mipsr2_decoder()
1055 cpc = regs->cp0_epc; in mipsr2_decoder()
1080 regs->cp0_cause |= CAUSEF_BD; in mipsr2_decoder()
1094 regs->regs[31] = r31; in mipsr2_decoder()
1095 regs->cp0_epc = epc; in mipsr2_decoder()
1119 regs->regs[31] = r31; in mipsr2_decoder()
1120 regs->cp0_epc = epc; in mipsr2_decoder()
1126 cpc = regs->cp0_epc; in mipsr2_decoder()
1157 regs->cp0_cause |= CAUSEF_BD; in mipsr2_decoder()
1175 regs->regs[31] = r31; in mipsr2_decoder()
1176 regs->cp0_epc = epc; in mipsr2_decoder()
1178 err = fpu_emulator_cop1Handler(regs, &current->thread.fpu, 0, in mipsr2_decoder()
1185 *fcr31 = res = mask_fcr31_x(current->thread.fpu.fcr31); in mipsr2_decoder()
1186 current->thread.fpu.fcr31 &= ~res; in mipsr2_decoder()
1189 * this is a tricky issue - lose_fpu() uses LL/SC atomics in mipsr2_decoder()
1193 * more often than LL-FPU-SC and I prefer loop here until in mipsr2_decoder()
1199 current->thread.cp0_baduaddr = (unsigned long)fault_addr; in mipsr2_decoder()
1206 rt = regs->regs[MIPSInst_RT(inst)]; in mipsr2_decoder()
1207 vaddr = regs->regs[MIPSInst_RS(inst)] + MIPSInst_SIMM(inst); in mipsr2_decoder()
1209 current->thread.cp0_baduaddr = vaddr; in mipsr2_decoder()
1217 "1:" LB "%1, 0(%2)\n" in mipsr2_decoder()
1218 INS "%0, %1, 24, 8\n" in mipsr2_decoder()
1219 " andi %1, %2, 0x3\n" in mipsr2_decoder()
1221 ADDIU "%2, %2, -1\n" in mipsr2_decoder()
1222 "2:" LB "%1, 0(%2)\n" in mipsr2_decoder()
1223 INS "%0, %1, 16, 8\n" in mipsr2_decoder()
1224 " andi %1, %2, 0x3\n" in mipsr2_decoder()
1226 ADDIU "%2, %2, -1\n" in mipsr2_decoder()
1227 "3:" LB "%1, 0(%2)\n" in mipsr2_decoder()
1228 INS "%0, %1, 8, 8\n" in mipsr2_decoder()
1229 " andi %1, %2, 0x3\n" in mipsr2_decoder()
1231 ADDIU "%2, %2, -1\n" in mipsr2_decoder()
1232 "4:" LB "%1, 0(%2)\n" in mipsr2_decoder()
1233 INS "%0, %1, 0, 8\n" in mipsr2_decoder()
1235 "1:" LB "%1, 0(%2)\n" in mipsr2_decoder()
1236 INS "%0, %1, 24, 8\n" in mipsr2_decoder()
1237 ADDIU "%2, %2, 1\n" in mipsr2_decoder()
1238 " andi %1, %2, 0x3\n" in mipsr2_decoder()
1240 "2:" LB "%1, 0(%2)\n" in mipsr2_decoder()
1241 INS "%0, %1, 16, 8\n" in mipsr2_decoder()
1242 ADDIU "%2, %2, 1\n" in mipsr2_decoder()
1243 " andi %1, %2, 0x3\n" in mipsr2_decoder()
1245 "3:" LB "%1, 0(%2)\n" in mipsr2_decoder()
1246 INS "%0, %1, 8, 8\n" in mipsr2_decoder()
1247 ADDIU "%2, %2, 1\n" in mipsr2_decoder()
1248 " andi %1, %2, 0x3\n" in mipsr2_decoder()
1250 "4:" LB "%1, 0(%2)\n" in mipsr2_decoder()
1251 INS "%0, %1, 0, 8\n" in mipsr2_decoder()
1257 "8: li %3,%4\n" in mipsr2_decoder()
1261 STR(PTR_WD) " 1b,8b\n" in mipsr2_decoder()
1262 STR(PTR_WD) " 2b,8b\n" in mipsr2_decoder()
1263 STR(PTR_WD) " 3b,8b\n" in mipsr2_decoder()
1264 STR(PTR_WD) " 4b,8b\n" in mipsr2_decoder()
1272 regs->regs[MIPSInst_RT(inst)] = rt; in mipsr2_decoder()
1279 rt = regs->regs[MIPSInst_RT(inst)]; in mipsr2_decoder()
1280 vaddr = regs->regs[MIPSInst_RS(inst)] + MIPSInst_SIMM(inst); in mipsr2_decoder()
1282 current->thread.cp0_baduaddr = vaddr; in mipsr2_decoder()
1290 "1:" LB "%1, 0(%2)\n" in mipsr2_decoder()
1291 INS "%0, %1, 0, 8\n" in mipsr2_decoder()
1292 ADDIU "%2, %2, 1\n" in mipsr2_decoder()
1293 " andi %1, %2, 0x3\n" in mipsr2_decoder()
1295 "2:" LB "%1, 0(%2)\n" in mipsr2_decoder()
1296 INS "%0, %1, 8, 8\n" in mipsr2_decoder()
1297 ADDIU "%2, %2, 1\n" in mipsr2_decoder()
1298 " andi %1, %2, 0x3\n" in mipsr2_decoder()
1300 "3:" LB "%1, 0(%2)\n" in mipsr2_decoder()
1301 INS "%0, %1, 16, 8\n" in mipsr2_decoder()
1302 ADDIU "%2, %2, 1\n" in mipsr2_decoder()
1303 " andi %1, %2, 0x3\n" in mipsr2_decoder()
1305 "4:" LB "%1, 0(%2)\n" in mipsr2_decoder()
1306 INS "%0, %1, 24, 8\n" in mipsr2_decoder()
1309 "1:" LB "%1, 0(%2)\n" in mipsr2_decoder()
1310 INS "%0, %1, 0, 8\n" in mipsr2_decoder()
1311 " andi %1, %2, 0x3\n" in mipsr2_decoder()
1313 ADDIU "%2, %2, -1\n" in mipsr2_decoder()
1314 "2:" LB "%1, 0(%2)\n" in mipsr2_decoder()
1315 INS "%0, %1, 8, 8\n" in mipsr2_decoder()
1316 " andi %1, %2, 0x3\n" in mipsr2_decoder()
1318 ADDIU "%2, %2, -1\n" in mipsr2_decoder()
1319 "3:" LB "%1, 0(%2)\n" in mipsr2_decoder()
1320 INS "%0, %1, 16, 8\n" in mipsr2_decoder()
1321 " andi %1, %2, 0x3\n" in mipsr2_decoder()
1323 ADDIU "%2, %2, -1\n" in mipsr2_decoder()
1324 "4:" LB "%1, 0(%2)\n" in mipsr2_decoder()
1325 INS "%0, %1, 24, 8\n" in mipsr2_decoder()
1332 "8: li %3,%4\n" in mipsr2_decoder()
1336 STR(PTR_WD) " 1b,8b\n" in mipsr2_decoder()
1337 STR(PTR_WD) " 2b,8b\n" in mipsr2_decoder()
1338 STR(PTR_WD) " 3b,8b\n" in mipsr2_decoder()
1339 STR(PTR_WD) " 4b,8b\n" in mipsr2_decoder()
1346 regs->regs[MIPSInst_RT(inst)] = rt; in mipsr2_decoder()
1353 rt = regs->regs[MIPSInst_RT(inst)]; in mipsr2_decoder()
1354 vaddr = regs->regs[MIPSInst_RS(inst)] + MIPSInst_SIMM(inst); in mipsr2_decoder()
1356 current->thread.cp0_baduaddr = vaddr; in mipsr2_decoder()
1364 EXT "%1, %0, 24, 8\n" in mipsr2_decoder()
1365 "1:" SB "%1, 0(%2)\n" in mipsr2_decoder()
1366 " andi %1, %2, 0x3\n" in mipsr2_decoder()
1368 ADDIU "%2, %2, -1\n" in mipsr2_decoder()
1369 EXT "%1, %0, 16, 8\n" in mipsr2_decoder()
1370 "2:" SB "%1, 0(%2)\n" in mipsr2_decoder()
1371 " andi %1, %2, 0x3\n" in mipsr2_decoder()
1373 ADDIU "%2, %2, -1\n" in mipsr2_decoder()
1374 EXT "%1, %0, 8, 8\n" in mipsr2_decoder()
1375 "3:" SB "%1, 0(%2)\n" in mipsr2_decoder()
1376 " andi %1, %2, 0x3\n" in mipsr2_decoder()
1378 ADDIU "%2, %2, -1\n" in mipsr2_decoder()
1379 EXT "%1, %0, 0, 8\n" in mipsr2_decoder()
1380 "4:" SB "%1, 0(%2)\n" in mipsr2_decoder()
1382 EXT "%1, %0, 24, 8\n" in mipsr2_decoder()
1383 "1:" SB "%1, 0(%2)\n" in mipsr2_decoder()
1384 ADDIU "%2, %2, 1\n" in mipsr2_decoder()
1385 " andi %1, %2, 0x3\n" in mipsr2_decoder()
1387 EXT "%1, %0, 16, 8\n" in mipsr2_decoder()
1388 "2:" SB "%1, 0(%2)\n" in mipsr2_decoder()
1389 ADDIU "%2, %2, 1\n" in mipsr2_decoder()
1390 " andi %1, %2, 0x3\n" in mipsr2_decoder()
1392 EXT "%1, %0, 8, 8\n" in mipsr2_decoder()
1393 "3:" SB "%1, 0(%2)\n" in mipsr2_decoder()
1394 ADDIU "%2, %2, 1\n" in mipsr2_decoder()
1395 " andi %1, %2, 0x3\n" in mipsr2_decoder()
1397 EXT "%1, %0, 0, 8\n" in mipsr2_decoder()
1398 "4:" SB "%1, 0(%2)\n" in mipsr2_decoder()
1403 "8: li %3,%4\n" in mipsr2_decoder()
1407 STR(PTR_WD) " 1b,8b\n" in mipsr2_decoder()
1408 STR(PTR_WD) " 2b,8b\n" in mipsr2_decoder()
1409 STR(PTR_WD) " 3b,8b\n" in mipsr2_decoder()
1410 STR(PTR_WD) " 4b,8b\n" in mipsr2_decoder()
1423 rt = regs->regs[MIPSInst_RT(inst)]; in mipsr2_decoder()
1424 vaddr = regs->regs[MIPSInst_RS(inst)] + MIPSInst_SIMM(inst); in mipsr2_decoder()
1426 current->thread.cp0_baduaddr = vaddr; in mipsr2_decoder()
1434 EXT "%1, %0, 0, 8\n" in mipsr2_decoder()
1435 "1:" SB "%1, 0(%2)\n" in mipsr2_decoder()
1436 ADDIU "%2, %2, 1\n" in mipsr2_decoder()
1437 " andi %1, %2, 0x3\n" in mipsr2_decoder()
1439 EXT "%1, %0, 8, 8\n" in mipsr2_decoder()
1440 "2:" SB "%1, 0(%2)\n" in mipsr2_decoder()
1441 ADDIU "%2, %2, 1\n" in mipsr2_decoder()
1442 " andi %1, %2, 0x3\n" in mipsr2_decoder()
1444 EXT "%1, %0, 16, 8\n" in mipsr2_decoder()
1445 "3:" SB "%1, 0(%2)\n" in mipsr2_decoder()
1446 ADDIU "%2, %2, 1\n" in mipsr2_decoder()
1447 " andi %1, %2, 0x3\n" in mipsr2_decoder()
1449 EXT "%1, %0, 24, 8\n" in mipsr2_decoder()
1450 "4:" SB "%1, 0(%2)\n" in mipsr2_decoder()
1452 EXT "%1, %0, 0, 8\n" in mipsr2_decoder()
1453 "1:" SB "%1, 0(%2)\n" in mipsr2_decoder()
1454 " andi %1, %2, 0x3\n" in mipsr2_decoder()
1456 ADDIU "%2, %2, -1\n" in mipsr2_decoder()
1457 EXT "%1, %0, 8, 8\n" in mipsr2_decoder()
1458 "2:" SB "%1, 0(%2)\n" in mipsr2_decoder()
1459 " andi %1, %2, 0x3\n" in mipsr2_decoder()
1461 ADDIU "%2, %2, -1\n" in mipsr2_decoder()
1462 EXT "%1, %0, 16, 8\n" in mipsr2_decoder()
1463 "3:" SB "%1, 0(%2)\n" in mipsr2_decoder()
1464 " andi %1, %2, 0x3\n" in mipsr2_decoder()
1466 ADDIU "%2, %2, -1\n" in mipsr2_decoder()
1467 EXT "%1, %0, 24, 8\n" in mipsr2_decoder()
1468 "4:" SB "%1, 0(%2)\n" in mipsr2_decoder()
1473 "8: li %3,%4\n" in mipsr2_decoder()
1477 STR(PTR_WD) " 1b,8b\n" in mipsr2_decoder()
1478 STR(PTR_WD) " 2b,8b\n" in mipsr2_decoder()
1479 STR(PTR_WD) " 3b,8b\n" in mipsr2_decoder()
1480 STR(PTR_WD) " 4b,8b\n" in mipsr2_decoder()
1498 rt = regs->regs[MIPSInst_RT(inst)]; in mipsr2_decoder()
1499 vaddr = regs->regs[MIPSInst_RS(inst)] + MIPSInst_SIMM(inst); in mipsr2_decoder()
1500 if (!access_ok((void __user *)vaddr, 8)) { in mipsr2_decoder()
1501 current->thread.cp0_baduaddr = vaddr; in mipsr2_decoder()
1509 "1: lb %1, 0(%2)\n" in mipsr2_decoder()
1510 " dinsu %0, %1, 56, 8\n" in mipsr2_decoder()
1511 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1513 " daddiu %2, %2, -1\n" in mipsr2_decoder()
1514 "2: lb %1, 0(%2)\n" in mipsr2_decoder()
1515 " dinsu %0, %1, 48, 8\n" in mipsr2_decoder()
1516 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1518 " daddiu %2, %2, -1\n" in mipsr2_decoder()
1519 "3: lb %1, 0(%2)\n" in mipsr2_decoder()
1520 " dinsu %0, %1, 40, 8\n" in mipsr2_decoder()
1521 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1523 " daddiu %2, %2, -1\n" in mipsr2_decoder()
1524 "4: lb %1, 0(%2)\n" in mipsr2_decoder()
1525 " dinsu %0, %1, 32, 8\n" in mipsr2_decoder()
1526 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1528 " daddiu %2, %2, -1\n" in mipsr2_decoder()
1529 "5: lb %1, 0(%2)\n" in mipsr2_decoder()
1530 " dins %0, %1, 24, 8\n" in mipsr2_decoder()
1531 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1533 " daddiu %2, %2, -1\n" in mipsr2_decoder()
1534 "6: lb %1, 0(%2)\n" in mipsr2_decoder()
1535 " dins %0, %1, 16, 8\n" in mipsr2_decoder()
1536 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1538 " daddiu %2, %2, -1\n" in mipsr2_decoder()
1539 "7: lb %1, 0(%2)\n" in mipsr2_decoder()
1540 " dins %0, %1, 8, 8\n" in mipsr2_decoder()
1541 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1543 " daddiu %2, %2, -1\n" in mipsr2_decoder()
1544 "0: lb %1, 0(%2)\n" in mipsr2_decoder()
1545 " dins %0, %1, 0, 8\n" in mipsr2_decoder()
1547 "1: lb %1, 0(%2)\n" in mipsr2_decoder()
1548 " dinsu %0, %1, 56, 8\n" in mipsr2_decoder()
1549 " daddiu %2, %2, 1\n" in mipsr2_decoder()
1550 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1552 "2: lb %1, 0(%2)\n" in mipsr2_decoder()
1553 " dinsu %0, %1, 48, 8\n" in mipsr2_decoder()
1554 " daddiu %2, %2, 1\n" in mipsr2_decoder()
1555 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1557 "3: lb %1, 0(%2)\n" in mipsr2_decoder()
1558 " dinsu %0, %1, 40, 8\n" in mipsr2_decoder()
1559 " daddiu %2, %2, 1\n" in mipsr2_decoder()
1560 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1562 "4: lb %1, 0(%2)\n" in mipsr2_decoder()
1563 " dinsu %0, %1, 32, 8\n" in mipsr2_decoder()
1564 " daddiu %2, %2, 1\n" in mipsr2_decoder()
1565 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1567 "5: lb %1, 0(%2)\n" in mipsr2_decoder()
1568 " dins %0, %1, 24, 8\n" in mipsr2_decoder()
1569 " daddiu %2, %2, 1\n" in mipsr2_decoder()
1570 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1572 "6: lb %1, 0(%2)\n" in mipsr2_decoder()
1573 " dins %0, %1, 16, 8\n" in mipsr2_decoder()
1574 " daddiu %2, %2, 1\n" in mipsr2_decoder()
1575 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1577 "7: lb %1, 0(%2)\n" in mipsr2_decoder()
1578 " dins %0, %1, 8, 8\n" in mipsr2_decoder()
1579 " daddiu %2, %2, 1\n" in mipsr2_decoder()
1580 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1582 "0: lb %1, 0(%2)\n" in mipsr2_decoder()
1583 " dins %0, %1, 0, 8\n" in mipsr2_decoder()
1588 "8: li %3,%4\n" in mipsr2_decoder()
1592 STR(PTR_WD) " 1b,8b\n" in mipsr2_decoder()
1593 STR(PTR_WD) " 2b,8b\n" in mipsr2_decoder()
1594 STR(PTR_WD) " 3b,8b\n" in mipsr2_decoder()
1595 STR(PTR_WD) " 4b,8b\n" in mipsr2_decoder()
1596 STR(PTR_WD) " 5b,8b\n" in mipsr2_decoder()
1597 STR(PTR_WD) " 6b,8b\n" in mipsr2_decoder()
1598 STR(PTR_WD) " 7b,8b\n" in mipsr2_decoder()
1599 STR(PTR_WD) " 0b,8b\n" in mipsr2_decoder()
1606 regs->regs[MIPSInst_RT(inst)] = rt; in mipsr2_decoder()
1617 rt = regs->regs[MIPSInst_RT(inst)]; in mipsr2_decoder()
1618 vaddr = regs->regs[MIPSInst_RS(inst)] + MIPSInst_SIMM(inst); in mipsr2_decoder()
1619 if (!access_ok((void __user *)vaddr, 8)) { in mipsr2_decoder()
1620 current->thread.cp0_baduaddr = vaddr; in mipsr2_decoder()
1628 "1: lb %1, 0(%2)\n" in mipsr2_decoder()
1629 " dins %0, %1, 0, 8\n" in mipsr2_decoder()
1630 " daddiu %2, %2, 1\n" in mipsr2_decoder()
1631 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1633 "2: lb %1, 0(%2)\n" in mipsr2_decoder()
1634 " dins %0, %1, 8, 8\n" in mipsr2_decoder()
1635 " daddiu %2, %2, 1\n" in mipsr2_decoder()
1636 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1638 "3: lb %1, 0(%2)\n" in mipsr2_decoder()
1639 " dins %0, %1, 16, 8\n" in mipsr2_decoder()
1640 " daddiu %2, %2, 1\n" in mipsr2_decoder()
1641 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1643 "4: lb %1, 0(%2)\n" in mipsr2_decoder()
1644 " dins %0, %1, 24, 8\n" in mipsr2_decoder()
1645 " daddiu %2, %2, 1\n" in mipsr2_decoder()
1646 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1648 "5: lb %1, 0(%2)\n" in mipsr2_decoder()
1649 " dinsu %0, %1, 32, 8\n" in mipsr2_decoder()
1650 " daddiu %2, %2, 1\n" in mipsr2_decoder()
1651 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1653 "6: lb %1, 0(%2)\n" in mipsr2_decoder()
1654 " dinsu %0, %1, 40, 8\n" in mipsr2_decoder()
1655 " daddiu %2, %2, 1\n" in mipsr2_decoder()
1656 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1658 "7: lb %1, 0(%2)\n" in mipsr2_decoder()
1659 " dinsu %0, %1, 48, 8\n" in mipsr2_decoder()
1660 " daddiu %2, %2, 1\n" in mipsr2_decoder()
1661 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1663 "0: lb %1, 0(%2)\n" in mipsr2_decoder()
1664 " dinsu %0, %1, 56, 8\n" in mipsr2_decoder()
1666 "1: lb %1, 0(%2)\n" in mipsr2_decoder()
1667 " dins %0, %1, 0, 8\n" in mipsr2_decoder()
1668 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1670 " daddiu %2, %2, -1\n" in mipsr2_decoder()
1671 "2: lb %1, 0(%2)\n" in mipsr2_decoder()
1672 " dins %0, %1, 8, 8\n" in mipsr2_decoder()
1673 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1675 " daddiu %2, %2, -1\n" in mipsr2_decoder()
1676 "3: lb %1, 0(%2)\n" in mipsr2_decoder()
1677 " dins %0, %1, 16, 8\n" in mipsr2_decoder()
1678 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1680 " daddiu %2, %2, -1\n" in mipsr2_decoder()
1681 "4: lb %1, 0(%2)\n" in mipsr2_decoder()
1682 " dins %0, %1, 24, 8\n" in mipsr2_decoder()
1683 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1685 " daddiu %2, %2, -1\n" in mipsr2_decoder()
1686 "5: lb %1, 0(%2)\n" in mipsr2_decoder()
1687 " dinsu %0, %1, 32, 8\n" in mipsr2_decoder()
1688 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1690 " daddiu %2, %2, -1\n" in mipsr2_decoder()
1691 "6: lb %1, 0(%2)\n" in mipsr2_decoder()
1692 " dinsu %0, %1, 40, 8\n" in mipsr2_decoder()
1693 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1695 " daddiu %2, %2, -1\n" in mipsr2_decoder()
1696 "7: lb %1, 0(%2)\n" in mipsr2_decoder()
1697 " dinsu %0, %1, 48, 8\n" in mipsr2_decoder()
1698 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1700 " daddiu %2, %2, -1\n" in mipsr2_decoder()
1701 "0: lb %1, 0(%2)\n" in mipsr2_decoder()
1702 " dinsu %0, %1, 56, 8\n" in mipsr2_decoder()
1707 "8: li %3,%4\n" in mipsr2_decoder()
1711 STR(PTR_WD) " 1b,8b\n" in mipsr2_decoder()
1712 STR(PTR_WD) " 2b,8b\n" in mipsr2_decoder()
1713 STR(PTR_WD) " 3b,8b\n" in mipsr2_decoder()
1714 STR(PTR_WD) " 4b,8b\n" in mipsr2_decoder()
1715 STR(PTR_WD) " 5b,8b\n" in mipsr2_decoder()
1716 STR(PTR_WD) " 6b,8b\n" in mipsr2_decoder()
1717 STR(PTR_WD) " 7b,8b\n" in mipsr2_decoder()
1718 STR(PTR_WD) " 0b,8b\n" in mipsr2_decoder()
1725 regs->regs[MIPSInst_RT(inst)] = rt; in mipsr2_decoder()
1736 rt = regs->regs[MIPSInst_RT(inst)]; in mipsr2_decoder()
1737 vaddr = regs->regs[MIPSInst_RS(inst)] + MIPSInst_SIMM(inst); in mipsr2_decoder()
1738 if (!access_ok((void __user *)vaddr, 8)) { in mipsr2_decoder()
1739 current->thread.cp0_baduaddr = vaddr; in mipsr2_decoder()
1747 " dextu %1, %0, 56, 8\n" in mipsr2_decoder()
1748 "1: sb %1, 0(%2)\n" in mipsr2_decoder()
1749 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1751 " daddiu %2, %2, -1\n" in mipsr2_decoder()
1752 " dextu %1, %0, 48, 8\n" in mipsr2_decoder()
1753 "2: sb %1, 0(%2)\n" in mipsr2_decoder()
1754 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1756 " daddiu %2, %2, -1\n" in mipsr2_decoder()
1757 " dextu %1, %0, 40, 8\n" in mipsr2_decoder()
1758 "3: sb %1, 0(%2)\n" in mipsr2_decoder()
1759 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1761 " daddiu %2, %2, -1\n" in mipsr2_decoder()
1762 " dextu %1, %0, 32, 8\n" in mipsr2_decoder()
1763 "4: sb %1, 0(%2)\n" in mipsr2_decoder()
1764 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1766 " daddiu %2, %2, -1\n" in mipsr2_decoder()
1767 " dext %1, %0, 24, 8\n" in mipsr2_decoder()
1768 "5: sb %1, 0(%2)\n" in mipsr2_decoder()
1769 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1771 " daddiu %2, %2, -1\n" in mipsr2_decoder()
1772 " dext %1, %0, 16, 8\n" in mipsr2_decoder()
1773 "6: sb %1, 0(%2)\n" in mipsr2_decoder()
1774 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1776 " daddiu %2, %2, -1\n" in mipsr2_decoder()
1777 " dext %1, %0, 8, 8\n" in mipsr2_decoder()
1778 "7: sb %1, 0(%2)\n" in mipsr2_decoder()
1779 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1781 " daddiu %2, %2, -1\n" in mipsr2_decoder()
1782 " dext %1, %0, 0, 8\n" in mipsr2_decoder()
1783 "0: sb %1, 0(%2)\n" in mipsr2_decoder()
1785 " dextu %1, %0, 56, 8\n" in mipsr2_decoder()
1786 "1: sb %1, 0(%2)\n" in mipsr2_decoder()
1787 " daddiu %2, %2, 1\n" in mipsr2_decoder()
1788 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1790 " dextu %1, %0, 48, 8\n" in mipsr2_decoder()
1791 "2: sb %1, 0(%2)\n" in mipsr2_decoder()
1792 " daddiu %2, %2, 1\n" in mipsr2_decoder()
1793 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1795 " dextu %1, %0, 40, 8\n" in mipsr2_decoder()
1796 "3: sb %1, 0(%2)\n" in mipsr2_decoder()
1797 " daddiu %2, %2, 1\n" in mipsr2_decoder()
1798 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1800 " dextu %1, %0, 32, 8\n" in mipsr2_decoder()
1801 "4: sb %1, 0(%2)\n" in mipsr2_decoder()
1802 " daddiu %2, %2, 1\n" in mipsr2_decoder()
1803 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1805 " dext %1, %0, 24, 8\n" in mipsr2_decoder()
1806 "5: sb %1, 0(%2)\n" in mipsr2_decoder()
1807 " daddiu %2, %2, 1\n" in mipsr2_decoder()
1808 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1810 " dext %1, %0, 16, 8\n" in mipsr2_decoder()
1811 "6: sb %1, 0(%2)\n" in mipsr2_decoder()
1812 " daddiu %2, %2, 1\n" in mipsr2_decoder()
1813 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1815 " dext %1, %0, 8, 8\n" in mipsr2_decoder()
1816 "7: sb %1, 0(%2)\n" in mipsr2_decoder()
1817 " daddiu %2, %2, 1\n" in mipsr2_decoder()
1818 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1820 " dext %1, %0, 0, 8\n" in mipsr2_decoder()
1821 "0: sb %1, 0(%2)\n" in mipsr2_decoder()
1826 "8: li %3,%4\n" in mipsr2_decoder()
1830 STR(PTR_WD) " 1b,8b\n" in mipsr2_decoder()
1831 STR(PTR_WD) " 2b,8b\n" in mipsr2_decoder()
1832 STR(PTR_WD) " 3b,8b\n" in mipsr2_decoder()
1833 STR(PTR_WD) " 4b,8b\n" in mipsr2_decoder()
1834 STR(PTR_WD) " 5b,8b\n" in mipsr2_decoder()
1835 STR(PTR_WD) " 6b,8b\n" in mipsr2_decoder()
1836 STR(PTR_WD) " 7b,8b\n" in mipsr2_decoder()
1837 STR(PTR_WD) " 0b,8b\n" in mipsr2_decoder()
1854 rt = regs->regs[MIPSInst_RT(inst)]; in mipsr2_decoder()
1855 vaddr = regs->regs[MIPSInst_RS(inst)] + MIPSInst_SIMM(inst); in mipsr2_decoder()
1856 if (!access_ok((void __user *)vaddr, 8)) { in mipsr2_decoder()
1857 current->thread.cp0_baduaddr = vaddr; in mipsr2_decoder()
1865 " dext %1, %0, 0, 8\n" in mipsr2_decoder()
1866 "1: sb %1, 0(%2)\n" in mipsr2_decoder()
1867 " daddiu %2, %2, 1\n" in mipsr2_decoder()
1868 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1870 " dext %1, %0, 8, 8\n" in mipsr2_decoder()
1871 "2: sb %1, 0(%2)\n" in mipsr2_decoder()
1872 " daddiu %2, %2, 1\n" in mipsr2_decoder()
1873 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1875 " dext %1, %0, 16, 8\n" in mipsr2_decoder()
1876 "3: sb %1, 0(%2)\n" in mipsr2_decoder()
1877 " daddiu %2, %2, 1\n" in mipsr2_decoder()
1878 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1880 " dext %1, %0, 24, 8\n" in mipsr2_decoder()
1881 "4: sb %1, 0(%2)\n" in mipsr2_decoder()
1882 " daddiu %2, %2, 1\n" in mipsr2_decoder()
1883 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1885 " dextu %1, %0, 32, 8\n" in mipsr2_decoder()
1886 "5: sb %1, 0(%2)\n" in mipsr2_decoder()
1887 " daddiu %2, %2, 1\n" in mipsr2_decoder()
1888 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1890 " dextu %1, %0, 40, 8\n" in mipsr2_decoder()
1891 "6: sb %1, 0(%2)\n" in mipsr2_decoder()
1892 " daddiu %2, %2, 1\n" in mipsr2_decoder()
1893 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1895 " dextu %1, %0, 48, 8\n" in mipsr2_decoder()
1896 "7: sb %1, 0(%2)\n" in mipsr2_decoder()
1897 " daddiu %2, %2, 1\n" in mipsr2_decoder()
1898 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1900 " dextu %1, %0, 56, 8\n" in mipsr2_decoder()
1901 "0: sb %1, 0(%2)\n" in mipsr2_decoder()
1903 " dext %1, %0, 0, 8\n" in mipsr2_decoder()
1904 "1: sb %1, 0(%2)\n" in mipsr2_decoder()
1905 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1907 " daddiu %2, %2, -1\n" in mipsr2_decoder()
1908 " dext %1, %0, 8, 8\n" in mipsr2_decoder()
1909 "2: sb %1, 0(%2)\n" in mipsr2_decoder()
1910 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1912 " daddiu %2, %2, -1\n" in mipsr2_decoder()
1913 " dext %1, %0, 16, 8\n" in mipsr2_decoder()
1914 "3: sb %1, 0(%2)\n" in mipsr2_decoder()
1915 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1917 " daddiu %2, %2, -1\n" in mipsr2_decoder()
1918 " dext %1, %0, 24, 8\n" in mipsr2_decoder()
1919 "4: sb %1, 0(%2)\n" in mipsr2_decoder()
1920 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1922 " daddiu %2, %2, -1\n" in mipsr2_decoder()
1923 " dextu %1, %0, 32, 8\n" in mipsr2_decoder()
1924 "5: sb %1, 0(%2)\n" in mipsr2_decoder()
1925 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1927 " daddiu %2, %2, -1\n" in mipsr2_decoder()
1928 " dextu %1, %0, 40, 8\n" in mipsr2_decoder()
1929 "6: sb %1, 0(%2)\n" in mipsr2_decoder()
1930 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1932 " daddiu %2, %2, -1\n" in mipsr2_decoder()
1933 " dextu %1, %0, 48, 8\n" in mipsr2_decoder()
1934 "7: sb %1, 0(%2)\n" in mipsr2_decoder()
1935 " andi %1, %2, 0x7\n" in mipsr2_decoder()
1937 " daddiu %2, %2, -1\n" in mipsr2_decoder()
1938 " dextu %1, %0, 56, 8\n" in mipsr2_decoder()
1939 "0: sb %1, 0(%2)\n" in mipsr2_decoder()
1944 "8: li %3,%4\n" in mipsr2_decoder()
1948 STR(PTR_WD) " 1b,8b\n" in mipsr2_decoder()
1949 STR(PTR_WD) " 2b,8b\n" in mipsr2_decoder()
1950 STR(PTR_WD) " 3b,8b\n" in mipsr2_decoder()
1951 STR(PTR_WD) " 4b,8b\n" in mipsr2_decoder()
1952 STR(PTR_WD) " 5b,8b\n" in mipsr2_decoder()
1953 STR(PTR_WD) " 6b,8b\n" in mipsr2_decoder()
1954 STR(PTR_WD) " 7b,8b\n" in mipsr2_decoder()
1955 STR(PTR_WD) " 0b,8b\n" in mipsr2_decoder()
1967 vaddr = regs->regs[MIPSInst_RS(inst)] + MIPSInst_SIMM(inst); in mipsr2_decoder()
1969 current->thread.cp0_baduaddr = vaddr; in mipsr2_decoder()
1974 current->thread.cp0_baduaddr = vaddr; in mipsr2_decoder()
2001 "ll %0, 0(%2)\n" in mipsr2_decoder()
2002 "2:\n" in mipsr2_decoder()
2007 "j 2b\n" in mipsr2_decoder()
2017 regs->regs[MIPSInst_RT(inst)] = res; in mipsr2_decoder()
2023 vaddr = regs->regs[MIPSInst_RS(inst)] + MIPSInst_SIMM(inst); in mipsr2_decoder()
2025 current->thread.cp0_baduaddr = vaddr; in mipsr2_decoder()
2030 current->thread.cp0_baduaddr = vaddr; in mipsr2_decoder()
2055 res = regs->regs[MIPSInst_RT(inst)]; in mipsr2_decoder()
2059 "sc %0, 0(%2)\n" in mipsr2_decoder()
2060 "2:\n" in mipsr2_decoder()
2065 "j 2b\n" in mipsr2_decoder()
2074 regs->regs[MIPSInst_RT(inst)] = res; in mipsr2_decoder()
2086 vaddr = regs->regs[MIPSInst_RS(inst)] + MIPSInst_SIMM(inst); in mipsr2_decoder()
2088 current->thread.cp0_baduaddr = vaddr; in mipsr2_decoder()
2092 if (!access_ok((void __user *)vaddr, 8)) { in mipsr2_decoder()
2093 current->thread.cp0_baduaddr = vaddr; in mipsr2_decoder()
2120 "lld %0, 0(%2)\n" in mipsr2_decoder()
2121 "2:\n" in mipsr2_decoder()
2126 "j 2b\n" in mipsr2_decoder()
2135 regs->regs[MIPSInst_RT(inst)] = res; in mipsr2_decoder()
2147 vaddr = regs->regs[MIPSInst_RS(inst)] + MIPSInst_SIMM(inst); in mipsr2_decoder()
2149 current->thread.cp0_baduaddr = vaddr; in mipsr2_decoder()
2153 if (!access_ok((void __user *)vaddr, 8)) { in mipsr2_decoder()
2154 current->thread.cp0_baduaddr = vaddr; in mipsr2_decoder()
2179 res = regs->regs[MIPSInst_RT(inst)]; in mipsr2_decoder()
2183 "scd %0, 0(%2)\n" in mipsr2_decoder()
2184 "2:\n" in mipsr2_decoder()
2189 "j 2b\n" in mipsr2_decoder()
2198 regs->regs[MIPSInst_RT(inst)] = res; in mipsr2_decoder()
2215 regs->cp0_cause &= ~CAUSEF_BD; in mipsr2_decoder()
2216 err = get_user(inst, (u32 __user *)regs->cp0_epc); in mipsr2_decoder()
2225 regs->regs[31] = r31; in mipsr2_decoder()
2226 regs->cp0_epc = epc; in mipsr2_decoder()
2241 seq_printf(s, "Instruction\tTotal\tBDslot\n------------------------------\n"); in mipsr2_emul_show()