Lines Matching refs:inst

883 static inline int mipsr2_find_op_func(struct pt_regs *regs, u32 inst,  in mipsr2_find_op_func()  argument
890 if ((inst & p->mask) == p->code) { in mipsr2_find_op_func()
891 err = (p->func)(regs, inst); in mipsr2_find_op_func()
904 int mipsr2_decoder(struct pt_regs *regs, u32 inst, unsigned long *fcr31) in mipsr2_decoder() argument
923 inst, epc, pass); in mipsr2_decoder()
925 switch (MIPSInst_OPCODE(inst)) { in mipsr2_decoder()
927 err = mipsr2_find_op_func(regs, inst, spec_op_table); in mipsr2_decoder()
935 err = mipsr2_find_op_func(regs, inst, spec2_op_table); in mipsr2_decoder()
938 rt = MIPSInst_RT(inst); in mipsr2_decoder()
939 rs = MIPSInst_RS(inst); in mipsr2_decoder()
942 if ((long)regs->regs[rs] >= MIPSInst_SIMM(inst)) in mipsr2_decoder()
949 if (regs->regs[rs] >= MIPSInst_UIMM(inst)) in mipsr2_decoder()
956 if ((long)regs->regs[rs] < MIPSInst_SIMM(inst)) in mipsr2_decoder()
963 if (regs->regs[rs] < MIPSInst_UIMM(inst)) in mipsr2_decoder()
970 if (regs->regs[rs] == MIPSInst_SIMM(inst)) in mipsr2_decoder()
977 if (regs->regs[rs] != MIPSInst_SIMM(inst)) in mipsr2_decoder()
1125 switch (MIPSInst_OPCODE(inst)) { in mipsr2_decoder()
1199 rt = regs->regs[MIPSInst_RT(inst)]; in mipsr2_decoder()
1200 vaddr = regs->regs[MIPSInst_RS(inst)] + MIPSInst_SIMM(inst); in mipsr2_decoder()
1264 if (MIPSInst_RT(inst) && !err) in mipsr2_decoder()
1265 regs->regs[MIPSInst_RT(inst)] = rt; in mipsr2_decoder()
1272 rt = regs->regs[MIPSInst_RT(inst)]; in mipsr2_decoder()
1273 vaddr = regs->regs[MIPSInst_RS(inst)] + MIPSInst_SIMM(inst); in mipsr2_decoder()
1338 if (MIPSInst_RT(inst) && !err) in mipsr2_decoder()
1339 regs->regs[MIPSInst_RT(inst)] = rt; in mipsr2_decoder()
1346 rt = regs->regs[MIPSInst_RT(inst)]; in mipsr2_decoder()
1347 vaddr = regs->regs[MIPSInst_RS(inst)] + MIPSInst_SIMM(inst); in mipsr2_decoder()
1416 rt = regs->regs[MIPSInst_RT(inst)]; in mipsr2_decoder()
1417 vaddr = regs->regs[MIPSInst_RS(inst)] + MIPSInst_SIMM(inst); in mipsr2_decoder()
1491 rt = regs->regs[MIPSInst_RT(inst)]; in mipsr2_decoder()
1492 vaddr = regs->regs[MIPSInst_RS(inst)] + MIPSInst_SIMM(inst); in mipsr2_decoder()
1598 if (MIPSInst_RT(inst) && !err) in mipsr2_decoder()
1599 regs->regs[MIPSInst_RT(inst)] = rt; in mipsr2_decoder()
1610 rt = regs->regs[MIPSInst_RT(inst)]; in mipsr2_decoder()
1611 vaddr = regs->regs[MIPSInst_RS(inst)] + MIPSInst_SIMM(inst); in mipsr2_decoder()
1717 if (MIPSInst_RT(inst) && !err) in mipsr2_decoder()
1718 regs->regs[MIPSInst_RT(inst)] = rt; in mipsr2_decoder()
1729 rt = regs->regs[MIPSInst_RT(inst)]; in mipsr2_decoder()
1730 vaddr = regs->regs[MIPSInst_RS(inst)] + MIPSInst_SIMM(inst); in mipsr2_decoder()
1847 rt = regs->regs[MIPSInst_RT(inst)]; in mipsr2_decoder()
1848 vaddr = regs->regs[MIPSInst_RS(inst)] + MIPSInst_SIMM(inst); in mipsr2_decoder()
1960 vaddr = regs->regs[MIPSInst_RS(inst)] + MIPSInst_SIMM(inst); in mipsr2_decoder()
2009 if (MIPSInst_RT(inst) && !err) in mipsr2_decoder()
2010 regs->regs[MIPSInst_RT(inst)] = res; in mipsr2_decoder()
2016 vaddr = regs->regs[MIPSInst_RS(inst)] + MIPSInst_SIMM(inst); in mipsr2_decoder()
2048 res = regs->regs[MIPSInst_RT(inst)]; in mipsr2_decoder()
2066 if (MIPSInst_RT(inst) && !err) in mipsr2_decoder()
2067 regs->regs[MIPSInst_RT(inst)] = res; in mipsr2_decoder()
2079 vaddr = regs->regs[MIPSInst_RS(inst)] + MIPSInst_SIMM(inst); in mipsr2_decoder()
2127 if (MIPSInst_RT(inst) && !err) in mipsr2_decoder()
2128 regs->regs[MIPSInst_RT(inst)] = res; in mipsr2_decoder()
2140 vaddr = regs->regs[MIPSInst_RS(inst)] + MIPSInst_SIMM(inst); in mipsr2_decoder()
2172 res = regs->regs[MIPSInst_RT(inst)]; in mipsr2_decoder()
2190 if (MIPSInst_RT(inst) && !err) in mipsr2_decoder()
2191 regs->regs[MIPSInst_RT(inst)] = res; in mipsr2_decoder()
2209 err = get_user(inst, (u32 __user *)regs->cp0_epc); in mipsr2_decoder()