Home
last modified time | relevance | path

Searched refs:vcpu_cpsr (Results 1 – 13 of 13) sorted by relevance

/openbmc/linux/arch/arm64/kvm/
H A Ddebug.c50 (*vcpu_cpsr(vcpu) & DBG_SPSR_SS); in save_guest_debug_regs()
63 *vcpu_cpsr(vcpu) |= DBG_SPSR_SS; in restore_guest_debug_regs()
65 *vcpu_cpsr(vcpu) &= ~DBG_SPSR_SS; in restore_guest_debug_regs()
211 *vcpu_cpsr(vcpu) |= DBG_SPSR_SS; in kvm_arm_setup_debug()
213 *vcpu_cpsr(vcpu) &= ~DBG_SPSR_SS; in kvm_arm_setup_debug()
224 trace_kvm_arm_set_dreg32("SPSR_EL2", *vcpu_cpsr(vcpu)); in kvm_arm_setup_debug()
289 if (!(*vcpu_cpsr(vcpu) & DBG_SPSR_SS)) in kvm_arm_clear_debug()
H A Dinject_fault.c32 switch(*vcpu_cpsr(vcpu) & PSR_MODE_MASK) { in pend_sync_exception()
59 unsigned long cpsr = *vcpu_cpsr(vcpu); in inject_abt64()
H A Dtrace_arm.h354 __entry->spsr_el2 = *vcpu_cpsr(vcpu);
356 __entry->source_mode = *vcpu_cpsr(vcpu) & (PSR_MODE_MASK | PSR_MODE32_BIT);
H A Dguest.c277 if (*vcpu_cpsr(vcpu) & PSR_MODE32_BIT) { in set_core_reg()
280 switch (*vcpu_cpsr(vcpu) & PSR_AA32_MODE_MASK) { in set_core_reg()
H A Demulate-nested.c1893 spsr = *vcpu_cpsr(vcpu); in kvm_check_illegal_exception_return()
1928 *vcpu_cpsr(vcpu) = spsr; in kvm_emulate_nested_eret()
1945 *vcpu_cpsr(vcpu) = spsr; in kvm_emulate_nested_eret()
1992 pstate = *vcpu_cpsr(vcpu); in kvm_inject_nested()
H A Dsys_regs.c2862 cp, *vcpu_pc(vcpu), *vcpu_cpsr(vcpu)); in unhandled_cp_access()
3124 *vcpu_pc(vcpu), *vcpu_cpsr(vcpu)); in emulate_sys_reg()
/openbmc/linux/arch/arm64/kvm/hyp/
H A Daarch32.c76 cpsr = *vcpu_cpsr(vcpu); in kvm_condition_valid32()
113 unsigned long cpsr = *vcpu_cpsr(vcpu); in kvm_adjust_itstate()
133 *vcpu_cpsr(vcpu) = cpsr; in kvm_adjust_itstate()
145 is_thumb = !!(*vcpu_cpsr(vcpu) & PSR_AA32_T_BIT); in kvm_skip_instr32()
H A Dexception.c97 mode = *vcpu_cpsr(vcpu) & (PSR_MODE_MASK | PSR_MODE32_BIT); in enter_exception64()
126 old = *vcpu_cpsr(vcpu); in enter_exception64()
170 *vcpu_cpsr(vcpu) = new; in enter_exception64()
197 old = *vcpu_cpsr(vcpu); in get_except32_cpsr()
288 unsigned long spsr = *vcpu_cpsr(vcpu); in enter_exception32()
293 *vcpu_cpsr(vcpu) = get_except32_cpsr(vcpu, mode); in enter_exception32()
/openbmc/linux/arch/arm64/kvm/hyp/include/hyp/
H A Dadjust_pc.h22 *vcpu_cpsr(vcpu) &= ~PSR_BTYPE_MASK; in kvm_skip_instr()
26 *vcpu_cpsr(vcpu) &= ~DBG_SPSR_SS; in kvm_skip_instr()
H A Dswitch.h633 *vcpu_cpsr(vcpu) & DBG_SPSR_SS && in synchronize_vcpu_pstate()
635 write_sysreg_el2(*vcpu_cpsr(vcpu), SYS_SPSR); in synchronize_vcpu_pstate()
/openbmc/linux/arch/arm64/include/asm/
H A Dkvm_emulate.h152 static __always_inline unsigned long *vcpu_cpsr(const struct kvm_vcpu *vcpu) in vcpu_cpsr() function
159 return !!(*vcpu_cpsr(vcpu) & PSR_MODE32_BIT); in vcpu_mode_is_32bit()
172 *vcpu_cpsr(vcpu) |= PSR_AA32_T_BIT; in vcpu_set_thumb()
286 mode = *vcpu_cpsr(vcpu) & PSR_AA32_MODE_MASK; in vcpu_mode_priv()
290 mode = *vcpu_cpsr(vcpu) & PSR_MODE_MASK; in vcpu_mode_priv()
474 *vcpu_cpsr(vcpu) |= PSR_AA32_E_BIT; in kvm_vcpu_set_be()
485 return !!(*vcpu_cpsr(vcpu) & PSR_AA32_E_BIT); in kvm_vcpu_is_be()
/openbmc/linux/arch/arm64/kvm/hyp/vhe/
H A Dswitch.c187 u64 mode = *vcpu_cpsr(vcpu) & (PSR_MODE_MASK | PSR_MODE32_BIT); in early_exit_filter()
198 *vcpu_cpsr(vcpu) &= ~(PSR_MODE_MASK | PSR_MODE32_BIT); in early_exit_filter()
199 *vcpu_cpsr(vcpu) |= mode; in early_exit_filter()
/openbmc/linux/arch/arm64/kvm/hyp/nvhe/
H A Dsys_regs.c40 *vcpu_cpsr(vcpu) = read_sysreg_el2(SYS_SPSR); in inject_undef64()
49 write_sysreg_el2(*vcpu_cpsr(vcpu), SYS_SPSR); in inject_undef64()