Lines Matching refs:new
97 u64 new = 0; in get_except64_cpsr() local
99 new |= (old & PSR_N_BIT); in get_except64_cpsr()
100 new |= (old & PSR_Z_BIT); in get_except64_cpsr()
101 new |= (old & PSR_C_BIT); in get_except64_cpsr()
102 new |= (old & PSR_V_BIT); in get_except64_cpsr()
105 new |= PSR_TCO_BIT; in get_except64_cpsr()
107 new |= (old & PSR_DIT_BIT); in get_except64_cpsr()
115 new |= (old & PSR_PAN_BIT); in get_except64_cpsr()
117 new |= PSR_PAN_BIT; in get_except64_cpsr()
128 new |= PSR_SSBS_BIT; in get_except64_cpsr()
133 new |= PSR_D_BIT; in get_except64_cpsr()
134 new |= PSR_A_BIT; in get_except64_cpsr()
135 new |= PSR_I_BIT; in get_except64_cpsr()
136 new |= PSR_F_BIT; in get_except64_cpsr()
138 new |= target_mode; in get_except64_cpsr()
140 return new; in get_except64_cpsr()
153 unsigned long sctlr, vbar, old, new; in enter_exception64() local
169 new = get_except64_cpsr(old, kvm_has_mte(kern_hyp_va(vcpu->kvm)), sctlr, in enter_exception64()
171 *vcpu_cpsr(vcpu) = new; in enter_exception64()
196 unsigned long old, new; in get_except32_cpsr() local
199 new = 0; in get_except32_cpsr()
201 new |= (old & PSR_AA32_N_BIT); in get_except32_cpsr()
202 new |= (old & PSR_AA32_Z_BIT); in get_except32_cpsr()
203 new |= (old & PSR_AA32_C_BIT); in get_except32_cpsr()
204 new |= (old & PSR_AA32_V_BIT); in get_except32_cpsr()
205 new |= (old & PSR_AA32_Q_BIT); in get_except32_cpsr()
211 new |= (old & PSR_AA32_DIT_BIT); in get_except32_cpsr()
216 new |= PSR_AA32_SSBS_BIT; in get_except32_cpsr()
221 new |= (old & PSR_AA32_PAN_BIT); in get_except32_cpsr()
223 new |= PSR_AA32_PAN_BIT; in get_except32_cpsr()
230 new |= (old & PSR_AA32_GE_MASK); in get_except32_cpsr()
239 new |= PSR_AA32_E_BIT; in get_except32_cpsr()
245 new |= (old & PSR_AA32_A_BIT); in get_except32_cpsr()
247 new |= PSR_AA32_A_BIT; in get_except32_cpsr()
252 new |= PSR_AA32_I_BIT; in get_except32_cpsr()
258 new |= (old & PSR_AA32_F_BIT); in get_except32_cpsr()
260 new |= PSR_AA32_F_BIT; in get_except32_cpsr()
266 new |= PSR_AA32_T_BIT; in get_except32_cpsr()
268 new |= mode; in get_except32_cpsr()
270 return new; in get_except32_cpsr()