Lines Matching refs:cpsr
60 unsigned long cpsr; in kvm_condition_valid32() local
73 cpsr = *vcpu_cpsr(vcpu); in kvm_condition_valid32()
79 it = ((cpsr >> 8) & 0xFC) | ((cpsr >> 25) & 0x3); in kvm_condition_valid32()
89 cpsr_cond = cpsr >> 28; in kvm_condition_valid32()
110 unsigned long cpsr = *vcpu_cpsr(vcpu); in kvm_adjust_itstate() local
111 bool is_arm = !(cpsr & PSR_AA32_T_BIT); in kvm_adjust_itstate()
113 if (is_arm || !(cpsr & PSR_AA32_IT_MASK)) in kvm_adjust_itstate()
116 cond = (cpsr & 0xe000) >> 13; in kvm_adjust_itstate()
117 itbits = (cpsr & 0x1c00) >> (10 - 2); in kvm_adjust_itstate()
118 itbits |= (cpsr & (0x3 << 25)) >> 25; in kvm_adjust_itstate()
126 cpsr &= ~PSR_AA32_IT_MASK; in kvm_adjust_itstate()
127 cpsr |= cond << 13; in kvm_adjust_itstate()
128 cpsr |= (itbits & 0x1c) << (10 - 2); in kvm_adjust_itstate()
129 cpsr |= (itbits & 0x3) << 25; in kvm_adjust_itstate()
130 *vcpu_cpsr(vcpu) = cpsr; in kvm_adjust_itstate()
165 unsigned long cpsr; in prepare_fault32() local
171 cpsr = mode | PSR_AA32_I_BIT; in prepare_fault32()
174 cpsr |= PSR_AA32_T_BIT; in prepare_fault32()
176 cpsr |= PSR_AA32_E_BIT; in prepare_fault32()
178 *vcpu_cpsr(vcpu) = cpsr; in prepare_fault32()