Home
last modified time | relevance | path

Searched refs:new_cr0 (Results 1 – 4 of 4) sorted by relevance

/openbmc/qemu/target/i386/
H A Dhelper.c130 void cpu_x86_update_cr0(CPUX86State *env, uint32_t new_cr0) in cpu_x86_update_cr0() argument
135 qemu_log_mask(CPU_LOG_MMU, "CR0 update: CR0=0x%08x\n", new_cr0); in cpu_x86_update_cr0()
136 if ((new_cr0 & (CR0_PG_MASK | CR0_WP_MASK | CR0_PE_MASK)) != in cpu_x86_update_cr0()
142 if (!(env->cr[0] & CR0_PG_MASK) && (new_cr0 & CR0_PG_MASK) && in cpu_x86_update_cr0()
150 } else if ((env->cr[0] & CR0_PG_MASK) && !(new_cr0 & CR0_PG_MASK) && in cpu_x86_update_cr0()
158 env->cr[0] = new_cr0 | CR0_ET_MASK; in cpu_x86_update_cr0()
167 ((new_cr0 << (HF_MP_SHIFT - 1)) & (HF_MP_MASK | HF_EM_MASK | HF_TS_MASK)); in cpu_x86_update_cr0()
H A Dcpu.h2467 void cpu_x86_update_cr0(CPUX86State *env, uint32_t new_cr0);
/openbmc/qemu/target/i386/tcg/sysemu/
H A Dsvm_helper.c163 uint64_t new_cr0; in helper_vmrun() local
309 new_cr0 = x86_ldq_phys(cs, env->vm_vmcb + offsetof(struct vmcb, save.cr0)); in helper_vmrun()
310 if (new_cr0 & SVM_CR0_RESERVED_MASK) { in helper_vmrun()
313 if ((new_cr0 & CR0_NW_MASK) && !(new_cr0 & CR0_CD_MASK)) { in helper_vmrun()
329 cpu_x86_update_cr0(env, new_cr0); in helper_vmrun()
/openbmc/linux/arch/x86/kvm/
H A Dx86.c12034 unsigned long new_cr0; in kvm_vcpu_reset() local
12143 new_cr0 = X86_CR0_ET; in kvm_vcpu_reset()
12145 new_cr0 |= (old_cr0 & (X86_CR0_NW | X86_CR0_CD)); in kvm_vcpu_reset()
12147 new_cr0 |= X86_CR0_NW | X86_CR0_CD; in kvm_vcpu_reset()
12149 static_call(kvm_x86_set_cr0)(vcpu, new_cr0); in kvm_vcpu_reset()