Lines Matching refs:regs
135 void emulate_load_store_insn(struct pt_regs *regs, void __user *addr, unsigned int *pc);
139 static inline bool cond_beqz(struct pt_regs *regs, int rj)
141 return regs->regs[rj] == 0;
144 static inline bool cond_bnez(struct pt_regs *regs, int rj)
146 return regs->regs[rj] != 0;
149 static inline bool cond_beq(struct pt_regs *regs, int rj, int rd)
151 return regs->regs[rj] == regs->regs[rd];
154 static inline bool cond_bne(struct pt_regs *regs, int rj, int rd)
156 return regs->regs[rj] != regs->regs[rd];
159 static inline bool cond_blt(struct pt_regs *regs, int rj, int rd)
161 return (long)regs->regs[rj] < (long)regs->regs[rd];
164 static inline bool cond_bge(struct pt_regs *regs, int rj, int rd)
166 return (long)regs->regs[rj] >= (long)regs->regs[rd];
169 static inline bool cond_bltu(struct pt_regs *regs, int rj, int rd)
171 return regs->regs[rj] < regs->regs[rd];
174 static inline bool cond_bgeu(struct pt_regs *regs, int rj, int rd)
176 return regs->regs[rj] >= regs->regs[rd];
195 int simu_branch(struct pt_regs *regs, union loongarch_instruction insn);
196 int simu_pc(struct pt_regs *regs, union loongarch_instruction insn);