Lines Matching refs:pstate

52 static bool __kprobes __check_eq(unsigned long pstate)
54 return (pstate & PSR_Z_BIT) != 0;
57 static bool __kprobes __check_ne(unsigned long pstate)
59 return (pstate & PSR_Z_BIT) == 0;
62 static bool __kprobes __check_cs(unsigned long pstate)
64 return (pstate & PSR_C_BIT) != 0;
67 static bool __kprobes __check_cc(unsigned long pstate)
69 return (pstate & PSR_C_BIT) == 0;
72 static bool __kprobes __check_mi(unsigned long pstate)
74 return (pstate & PSR_N_BIT) != 0;
77 static bool __kprobes __check_pl(unsigned long pstate)
79 return (pstate & PSR_N_BIT) == 0;
82 static bool __kprobes __check_vs(unsigned long pstate)
84 return (pstate & PSR_V_BIT) != 0;
87 static bool __kprobes __check_vc(unsigned long pstate)
89 return (pstate & PSR_V_BIT) == 0;
92 static bool __kprobes __check_hi(unsigned long pstate)
94 pstate &= ~(pstate >> 1); /* PSR_C_BIT &= ~PSR_Z_BIT */
95 return (pstate & PSR_C_BIT) != 0;
98 static bool __kprobes __check_ls(unsigned long pstate)
100 pstate &= ~(pstate >> 1); /* PSR_C_BIT &= ~PSR_Z_BIT */
101 return (pstate & PSR_C_BIT) == 0;
104 static bool __kprobes __check_ge(unsigned long pstate)
106 pstate ^= (pstate << 3); /* PSR_N_BIT ^= PSR_V_BIT */
107 return (pstate & PSR_N_BIT) == 0;
110 static bool __kprobes __check_lt(unsigned long pstate)
112 pstate ^= (pstate << 3); /* PSR_N_BIT ^= PSR_V_BIT */
113 return (pstate & PSR_N_BIT) != 0;
116 static bool __kprobes __check_gt(unsigned long pstate)
119 unsigned long temp = pstate ^ (pstate << 3);
121 temp |= (pstate << 1); /*PSR_N_BIT |= PSR_Z_BIT */
125 static bool __kprobes __check_le(unsigned long pstate)
128 unsigned long temp = pstate ^ (pstate << 3);
130 temp |= (pstate << 1); /*PSR_N_BIT |= PSR_Z_BIT */
134 static bool __kprobes __check_al(unsigned long pstate)
313 u32 it, pstate = regs->pstate;
315 it = (pstate & PSTATE_IT_1_0_MASK) >> PSTATE_IT_1_0_SHIFT;
316 it |= ((pstate & PSTATE_IT_7_2_MASK) >> PSTATE_IT_7_2_SHIFT) << 2;
328 regs->pstate &= ~PSR_AA32_IT_MASK;
329 regs->pstate |= pstate_it;
337 if (!(regs->pstate & PSR_AA32_T_BIT) ||
338 !(regs->pstate & PSR_AA32_IT_MASK))
374 regs->pstate &= ~PSR_BTYPE_MASK;
497 regs->pstate &= ~PSR_BTYPE_MASK;
703 return aarch32_opcode_cond_checks[cond](regs->pstate);