Lines Matching defs:mode
77 * The EL passed to this function *must* be a non-secure, privileged mode with
94 unsigned long sctlr, vbar, old, new, mode;
97 mode = *vcpu_cpsr(vcpu) & (PSR_MODE_MASK | PSR_MODE32_BIT);
99 if (mode == target_mode)
101 else if ((mode | PSR_MODE_THREAD_BIT) == target_mode)
103 else if (!(mode & PSR_MODE32_BIT))
192 static unsigned long get_except32_cpsr(struct kvm_vcpu *vcpu, u32 mode)
245 if (mode != PSR_AA32_MODE_UND && mode != PSR_AA32_MODE_SVC)
258 if (mode == PSR_AA32_MODE_FIQ)
267 new |= mode;
286 static void enter_exception32(struct kvm_vcpu *vcpu, u32 mode, u32 vect_offset)
293 *vcpu_cpsr(vcpu) = get_except32_cpsr(vcpu, mode);
298 switch(mode) {