Lines Matching refs:pstate
92 REG_OFFSET_NAME(pstate),
1253 return pstate_to_compat_psr(regs->pstate); in compat_get_user_reg()
1315 newregs.pstate = reg; in compat_gpr_set()
1537 newregs.pstate = compat_psr_to_pstate(val); in compat_ptrace_write_user()
1890 regs->pstate &= ~SPSR_EL1_AARCH32_RES0_BITS; in valid_compat_regs()
1894 regs->pstate |= PSR_AA32_E_BIT; in valid_compat_regs()
1896 regs->pstate &= ~PSR_AA32_E_BIT; in valid_compat_regs()
1899 if (user_mode(regs) && (regs->pstate & PSR_MODE32_BIT) && in valid_compat_regs()
1900 (regs->pstate & PSR_AA32_A_BIT) == 0 && in valid_compat_regs()
1901 (regs->pstate & PSR_AA32_I_BIT) == 0 && in valid_compat_regs()
1902 (regs->pstate & PSR_AA32_F_BIT) == 0) { in valid_compat_regs()
1910 regs->pstate &= PSR_AA32_N_BIT | PSR_AA32_Z_BIT | in valid_compat_regs()
1915 regs->pstate |= PSR_MODE32_BIT; in valid_compat_regs()
1922 regs->pstate &= ~SPSR_EL1_AARCH64_RES0_BITS; in valid_native_regs()
1924 if (user_mode(regs) && !(regs->pstate & PSR_MODE32_BIT) && in valid_native_regs()
1925 (regs->pstate & PSR_D_BIT) == 0 && in valid_native_regs()
1926 (regs->pstate & PSR_A_BIT) == 0 && in valid_native_regs()
1927 (regs->pstate & PSR_I_BIT) == 0 && in valid_native_regs()
1928 (regs->pstate & PSR_F_BIT) == 0) { in valid_native_regs()
1933 regs->pstate &= PSR_N_BIT | PSR_Z_BIT | PSR_C_BIT | PSR_V_BIT; in valid_native_regs()