Searched refs:new_cr0 (Results 1 – 4 of 4) sorted by relevance
130 void cpu_x86_update_cr0(CPUX86State *env, uint32_t new_cr0) in cpu_x86_update_cr0() argument135 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()
2467 void cpu_x86_update_cr0(CPUX86State *env, uint32_t new_cr0);
163 uint64_t new_cr0; in helper_vmrun() local309 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()
12034 unsigned long new_cr0; in kvm_vcpu_reset() local12143 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()