Home
last modified time | relevance | path

Searched refs:hflags (Results 1 – 22 of 22) sorted by relevance

/external/qemu/target-mips/
Dhelper.c112 int user_mode = (env->hflags & MIPS_HFLAG_MODE) == MIPS_HFLAG_UM; in get_physical_address()
113 int supervisor_mode = (env->hflags & MIPS_HFLAG_MODE) == MIPS_HFLAG_SM; in get_physical_address()
123 qemu_log("user mode %d h %08x\n", user_mode, env->hflags); in get_physical_address()
359 saved_hflags = env->hflags; in cpu_mips_tlb_refill()
367 env->hflags = MIPS_HFLAG_KM; in cpu_mips_tlb_refill()
404 env->hflags = saved_hflags; in cpu_mips_tlb_refill()
434 env->hflags = saved_hflags; in cpu_mips_tlb_refill()
604 (env->hflags & MIPS_HFLAG_DM)) in do_interrupt()
631 if (env->hflags & MIPS_HFLAG_BMASK) { in do_interrupt()
635 env->hflags &= ~MIPS_HFLAG_BMASK; in do_interrupt()
[all …]
Dcpu.h425 uint32_t hflags; /* CPU State */ member
515 return env->hflags & MIPS_HFLAG_KSU; in cpu_mmu_index()
545 (env->hflags & MIPS_HFLAG_DM)) { in cpu_mips_hw_interrupts_pending()
664 *flags = env->hflags & (MIPS_HFLAG_TMASK | MIPS_HFLAG_BMASK); in cpu_get_tb_cpu_state()
694 env->hflags &= ~MIPS_HFLAG_BMASK; in cpu_pc_from_tb()
695 env->hflags |= tb->flags & MIPS_HFLAG_BMASK; in cpu_pc_from_tb()
Dtranslate.c432 static TCGv_i32 hflags; variable
476 uint32_t hflags, saved_hflags; member
624 if (ctx->hflags & MIPS_HFLAG_F64) { in gen_load_fpr64()
639 if (ctx->hflags & MIPS_HFLAG_F64) { in gen_store_fpr64()
760 LOG_DISAS("hflags %08x saved %08x\n", ctx->hflags, ctx->saved_hflags); in save_cpu_state()
765 if (ctx->hflags != ctx->saved_hflags) { in save_cpu_state()
766 tcg_gen_movi_i32(hflags, ctx->hflags); in save_cpu_state()
767 ctx->saved_hflags = ctx->hflags; in save_cpu_state()
768 switch (ctx->hflags & MIPS_HFLAG_BMASK) { in save_cpu_state()
782 ctx->saved_hflags = ctx->hflags; in restore_cpu_state()
[all …]
Dop_helper.c35 env->hflags &= ~(MIPS_HFLAG_COP1X | MIPS_HFLAG_64 | MIPS_HFLAG_CP0 | in compute_hflags()
40 !(env->hflags & MIPS_HFLAG_DM)) { in compute_hflags()
41 env->hflags |= (env->CP0_Status >> CP0St_KSU) & MIPS_HFLAG_KSU; in compute_hflags()
44 if (((env->hflags & MIPS_HFLAG_KSU) != MIPS_HFLAG_UM) || in compute_hflags()
47 env->hflags |= MIPS_HFLAG_64; in compute_hflags()
50 env->hflags |= MIPS_HFLAG_UX; in compute_hflags()
54 !(env->hflags & MIPS_HFLAG_KSU)) { in compute_hflags()
55 env->hflags |= MIPS_HFLAG_CP0; in compute_hflags()
58 env->hflags |= MIPS_HFLAG_FPU; in compute_hflags()
61 env->hflags |= MIPS_HFLAG_F64; in compute_hflags()
[all …]
Dmachine.c84 qemu_put_be32s(f, &env->hflags); in cpu_save()
235 qemu_get_be32s(f, &env->hflags); in cpu_load()
/external/qemu/target-i386/
Dcpu.h749 uint32_t hflags; /* TB flags, see HF_xxx constants. These flags member
892 if ((env->hflags & HF_LMA_MASK) && (flags & DESC_L_MASK)) { in cpu_x86_load_seg_cache()
894 env->hflags |= HF_CS32_MASK | HF_SS32_MASK | HF_CS64_MASK; in cpu_x86_load_seg_cache()
895 env->hflags &= ~(HF_ADDSEG_MASK); in cpu_x86_load_seg_cache()
902 env->hflags = (env->hflags & ~(HF_CS32_MASK | HF_CS64_MASK)) | in cpu_x86_load_seg_cache()
908 if (env->hflags & HF_CS64_MASK) { in cpu_x86_load_seg_cache()
912 !(env->hflags & HF_CS32_MASK)) { in cpu_x86_load_seg_cache()
925 env->hflags = (env->hflags & in cpu_x86_load_seg_cache()
934 s->hflags = (s->hflags & ~HF_CPL_MASK) | cpl; in cpu_x86_set_cpl()
1034 return (env->hflags & HF_CPL_MASK) == 3 ? 1 : 0; in cpu_mmu_index()
[all …]
Dmachine.c29 uint32_t hflags; in cpu_save() local
39 hflags = env->hflags; /* XXX: suppress most of the redundant hflags */ in cpu_save()
40 qemu_put_be32s(f, &hflags); in cpu_save()
152 uint32_t hflags; in cpu_load() local
162 qemu_get_be32s(f, &hflags); in cpu_load()
307 env->hflags = hflags; in cpu_load()
Dhax-all.c792 uint32_t hflags; in hax_setup_qemu_emulator() local
794 hflags = (env->segs[R_CS].flags >> DESC_DPL_SHIFT) & HF_CPL_MASK; in hax_setup_qemu_emulator()
795 hflags |= (env->cr[0] & CR0_PE_MASK) << (HF_PE_SHIFT - CR0_PE_SHIFT); in hax_setup_qemu_emulator()
796 hflags |= (env->cr[0] << (HF_MP_SHIFT - CR0_MP_SHIFT)) & in hax_setup_qemu_emulator()
798 hflags |= (env->eflags & (HF_TF_MASK | HF_VM_MASK | HF_IOPL_MASK)); in hax_setup_qemu_emulator()
799 hflags |= (env->cr[4] & CR4_OSFXSR_MASK) << in hax_setup_qemu_emulator()
803 hflags |= HF_LMA_MASK; in hax_setup_qemu_emulator()
806 if ((hflags & HF_LMA_MASK) && (env->segs[R_CS].flags & DESC_L_MASK)) { in hax_setup_qemu_emulator()
807 hflags |= HF_CS32_MASK | HF_SS32_MASK | HF_CS64_MASK; in hax_setup_qemu_emulator()
809 hflags |= (env->segs[R_CS].flags & DESC_B_MASK) >> in hax_setup_qemu_emulator()
[all …]
Dkvm.c502 uint32_t hflags; in kvm_get_sregs() local
546 hflags = (env->segs[R_CS].flags >> DESC_DPL_SHIFT) & HF_CPL_MASK; in kvm_get_sregs()
547 hflags |= (env->cr[0] & CR0_PE_MASK) << (HF_PE_SHIFT - CR0_PE_SHIFT); in kvm_get_sregs()
548 hflags |= (env->cr[0] << (HF_MP_SHIFT - CR0_MP_SHIFT)) & in kvm_get_sregs()
550 hflags |= (env->eflags & (HF_TF_MASK | HF_VM_MASK | HF_IOPL_MASK)); in kvm_get_sregs()
551 hflags |= (env->cr[4] & CR4_OSFXSR_MASK) << in kvm_get_sregs()
555 hflags |= HF_LMA_MASK; in kvm_get_sregs()
558 if ((hflags & HF_LMA_MASK) && (env->segs[R_CS].flags & DESC_L_MASK)) { in kvm_get_sregs()
559 hflags |= HF_CS32_MASK | HF_SS32_MASK | HF_CS64_MASK; in kvm_get_sregs()
561 hflags |= (env->segs[R_CS].flags & DESC_B_MASK) >> in kvm_get_sregs()
[all …]
Dhelper.c484 env->hflags |= HF_SOFTMMU_MASK; in cpu_reset()
606 if (env->hflags & HF_CS64_MASK) { in cpu_x86_dump_seg_cache()
616 if (!(env->hflags & HF_PE_MASK) || !(sc->flags & DESC_P_MASK)) in cpu_x86_dump_seg_cache()
647 cpu_fprintf(f, sys_type_name[(env->hflags & HF_LMA_MASK) ? 1 : 0] in cpu_x86_dump_seg_cache()
674 if (env->hflags & HF_CS64_MASK) { in cpu_dump_state()
705 env->hflags & HF_CPL_MASK, in cpu_dump_state()
706 (env->hflags >> HF_INHIBIT_IRQ_SHIFT) & 1, in cpu_dump_state()
708 (env->hflags >> HF_SMM_SHIFT) & 1, in cpu_dump_state()
732 env->hflags & HF_CPL_MASK, in cpu_dump_state()
733 (env->hflags >> HF_INHIBIT_IRQ_SHIFT) & 1, in cpu_dump_state()
[all …]
Dseg_helper.c141 cpl = env->hflags & HF_CPL_MASK; in tss_load_seg()
335 env->hflags |= HF_TS_MASK; in switch_tss()
556 cpl = env->hflags & HF_CPL_MASK; in do_interrupt_protected()
757 cpl = env->hflags & HF_CPL_MASK; in do_interrupt64()
855 if (env->hflags & HF_LMA_MASK) { in helper_syscall()
861 code64 = env->hflags & HF_CS64_MASK; in helper_syscall()
909 cpl = env->hflags & HF_CPL_MASK; in helper_sysret()
914 if (env->hflags & HF_LMA_MASK) { in helper_sysret()
1007 if (env->hflags & HF_LMA_MASK) { in do_interrupt_user()
1016 cpl = env->hflags & HF_CPL_MASK; in do_interrupt_user()
[all …]
Dcc_helper.c252 env->hflags &= ~HF_TS_MASK; in helper_clts()
272 env->hflags |= HF_INHIBIT_IRQ_MASK; in helper_set_inhibit_irq()
277 env->hflags &= ~HF_INHIBIT_IRQ_MASK; in helper_reset_inhibit_irq()
Dsvm_helper.c167 env->hflags |= HF_SVMI_MASK; in helper_vmrun()
395 if (likely(!(env->hflags & HF_SVMI_MASK))) in helper_svm_check_intercept_param()
494 if(env->hflags & HF_INHIBIT_IRQ_MASK) { in helper_vmexit()
496 env->hflags &= ~HF_INHIBIT_IRQ_MASK; in helper_vmexit()
536 stb_phys(env->vm_vmcb + offsetof(struct vmcb, save.cpl), env->hflags & HF_CPL_MASK); in helper_vmexit()
540 env->hflags &= ~HF_SVMI_MASK; in helper_vmexit()
Dmisc_helper.c225 if ((env->cr[4] & CR4_TSD_MASK) && ((env->hflags & HF_CPL_MASK) != 0)) { in helper_rdtsc()
237 if ((env->cr[4] & CR4_PCE_MASK) && ((env->hflags & HF_CPL_MASK) != 0)) { in helper_rdpmc()
521 env->hflags &= ~HF_INHIBIT_IRQ_MASK; /* needed if sti is just before */ in do_hlt()
Dexcp_helper.c61 if (env->hflags & HF_SVMI_MASK) in check_exception()
Dfpu_helper.c1090 if (env->hflags & HF_CS64_MASK) in helper_fxsave()
1097 || (env->hflags & HF_CPL_MASK) in helper_fxsave()
1098 || !(env->hflags & HF_LMA_MASK)) { in helper_fxsave()
1135 if (env->hflags & HF_CS64_MASK) in helper_fxrstor()
1142 || (env->hflags & HF_CPL_MASK) in helper_fxrstor()
1143 || !(env->hflags & HF_LMA_MASK)) { in helper_fxrstor()
Dsmm_helper.c52 env->hflags |= HF_SMM_MASK; in do_smm_enter()
287 env->hflags &= ~HF_SMM_MASK; in helper_rsm()
/external/qemu/hw/mips/
Dmips_int.c14 !(env->hflags & MIPS_HFLAG_DM)) { in cpu_mips_update_irq()
/external/qemu/
Dcpu-exec.c359 !(env->hflags & HF_SMM_MASK)) { in cpu_exec()
379 !(env->hflags & HF_INHIBIT_IRQ_MASK))))) { in cpu_exec()
392 !(env->hflags & HF_INHIBIT_IRQ_MASK)) { in cpu_exec()
Dtranslate-all.c1524 if ((env->hflags & MIPS_HFLAG_BMASK) != 0 && n > 1) { in cpu_io_recompile()
1527 env->hflags &= ~MIPS_HFLAG_BMASK; in cpu_io_recompile()
/external/linux-tools-perf/perf-3.12.0/arch/x86/include/asm/
Dkvm_host.h351 u32 hflags; member
/external/qemu/hw/i386/
Dpc.c123 i440fx_set_smm(i440fx_state, (env->hflags >> HF_SMM_SHIFT) & 1); in cpu_smm_update()