Home
last modified time | relevance | path

Searched refs:eflags (Results 1 – 25 of 30) sorted by relevance

12

/xen/tools/tests/x86_emulator/
A Dtest_x86_emulator.c630 uint32_t *eflags, in rmw() argument
660 uint32_t *eflags, in blk() argument
910 regs.eflags = 0x200; in main()
925 regs.eflags = 0x200; in main()
940 regs.eflags = 0x200; in main()
958 regs.eflags = 0x200; in main()
972 regs.eflags = 0x200; in main()
988 regs.eflags = 0x200; in main()
1005 regs.eflags = 0x200; in main()
1035 regs.eflags = 0x200; in main()
[all …]
/xen/xen/arch/x86/pv/
A Diret.c111 u32 eflags; in compat_iret() local
135 if ( unlikely(__get_user(eflags, (u32 *)regs->rsp + 3)) ) in compat_iret()
142 v->arch.pv.iopl = eflags & X86_EFLAGS_IOPL; in compat_iret()
144 regs->eflags = (eflags & ~X86_EFLAGS_IOPL) | X86_EFLAGS_IF; in compat_iret()
146 if ( unlikely(eflags & X86_EFLAGS_VM) ) in compat_iret()
189 eflags &= ~X86_EFLAGS_IF; in compat_iret()
190 regs->eflags &= ~(X86_EFLAGS_VM|X86_EFLAGS_RF| in compat_iret()
216 vcpu_info(v, evtchn_upcall_mask) = !(eflags & X86_EFLAGS_IF); in compat_iret()
A Demul-priv-op.c636 if ( unlikely(ctxt->regs->eflags & X86_EFLAGS_DF) ) in rep_ins()
1252 unsigned int eflags, ar; in pv_emulate_privileged_op() local
1262 ASSERT(regs->eflags & X86_EFLAGS_IF); in pv_emulate_privileged_op()
1264 regs->eflags &= ~X86_EFLAGS_IF; in pv_emulate_privileged_op()
1266 regs->eflags |= X86_EFLAGS_IF; in pv_emulate_privileged_op()
1267 ASSERT(!(regs->eflags & X86_EFLAGS_IOPL)); in pv_emulate_privileged_op()
1268 regs->eflags |= curr->arch.pv.iopl; in pv_emulate_privileged_op()
1269 eflags = regs->eflags; in pv_emulate_privileged_op()
1283 ASSERT(!((regs->eflags ^ eflags) & in pv_emulate_privileged_op()
1285 regs->eflags |= X86_EFLAGS_IF; in pv_emulate_privileged_op()
[all …]
A Demulate.c85 regs->eflags &= ~X86_EFLAGS_RF; in pv_emul_instruction_done()
86 if ( regs->eflags & X86_EFLAGS_TF ) in pv_emul_instruction_done()
/xen/xen/arch/x86/
A Dgdbstub.c71 regs->eflags &= ~X86_EFLAGS_TF; in gdb_arch_resume()
74 regs->eflags |= X86_EFLAGS_RF; in gdb_arch_resume()
78 regs->eflags |= X86_EFLAGS_TF; in gdb_arch_resume()
A Dtraps.c763 (regs->eflags & X86_EFLAGS_IF) ? "" : " IN INTERRUPT CONTEXT"); in fatal_trap()
1390 (((regs->cs & 3) == 3) || !(regs->eflags & X86_EFLAGS_AC)) ) in __page_fault_type()
1420 if ( in_irq() || !(regs->eflags & X86_EFLAGS_IF) ) in fixup_page_fault()
1883 if ( regs->eflags & X86_EFLAGS_TF ) in do_debug()
1891 regs->eflags &= ~X86_EFLAGS_TF; in do_debug()
1898 regs->eflags &= ~X86_EFLAGS_TF; in do_debug()
A Ddomain.c362 v->arch.user_regs.eflags = X86_EFLAGS_MBS; in arch_vcpu_regs_init()
940 v->arch.pv.iopl = v->arch.user_regs.eflags & X86_EFLAGS_IOPL; in arch_set_info_guest()
941 v->arch.user_regs.eflags &= ~X86_EFLAGS_IOPL; in arch_set_info_guest()
944 v->arch.user_regs.eflags |= X86_EFLAGS_IF; in arch_set_info_guest()
1463 regs->eflags &= ~(X86_EFLAGS_VM|X86_EFLAGS_RF|X86_EFLAGS_NT| in load_segments()
/xen/xen/arch/x86/x86_emulate/
A Dx86_emulate.c1566 [eflags] "+g" (_regs.eflags), [tmp] "=&r" (tmp_) \
4080 unsigned int eflags = _regs.eflags; in x86_emulate() local
4583 _regs.eflags &= mask; in x86_emulate()
4864 eflags = (uint16_t)eflags | (_regs.eflags & 0xffff0000u); in x86_emulate()
4866 _regs.eflags &= mask; in x86_emulate()
4867 _regs.eflags |= (eflags & ~mask) | X86_EFLAGS_MBS; in x86_emulate()
6828 [eflags] "+g" (_regs.eflags), in x86_emulate()
8072 [eflags] "+g" (_regs.eflags), in x86_emulate()
11536 uint32_t *eflags, in x86_emul_rmw() argument
11704 uint32_t *eflags, in x86_emul_blk() argument
[all …]
A Dx86_emulate.h290 uint32_t *eflags,
324 uint32_t *eflags,
810 uint32_t *eflags,
818 uint32_t *eflags,
/xen/tools/debugger/gdbsx/xg/
A Dxg_main.c394 anyc.ctxt32.user_regs.eflags |= X86_EFLAGS_TF; in _change_TF()
396 anyc.ctxt32.user_regs.eflags &= ~X86_EFLAGS_TF; in _change_TF()
531 rp->eflags = cp->eflags; in _cp_32ctxt_to_32gdb()
553 rp->eflags = cp->rflags; in _cp_64ctxt_to_32gdb()
583 rp->eflags = cp->rflags; in _cp_64ctxt_to_64gdb()
617 cp->eflags = rp->eflags; in _cp_32gdb_to_32ctxt()
638 cp->eflags = rp->eflags; in _cp_32gdb_to_64ctxt()
661 cp->rflags = rp->eflags; in _cp_64gdb_to_64ctxt()
A Dxg_public.h47 uint32_t eflags; member
75 uint32_t eflags; member
/xen/tools/debugger/gdbsx/gx/
A Dgx_local.c36 r32p->eflags); in prnt_32regs()
50 r64p->eflags); in prnt_64regs()
/xen/xen/include/public/hvm/
A Dhvm_vcpu.h38 uint32_t eflags; member
/xen/xen/include/asm-x86/hvm/
A Dsupport.h120 void hvm_hlt(unsigned int eflags);
/xen/xen/arch/x86/hvm/
A Demulate.c876 if ( (hvmemul_ctxt->ctxt.regs->eflags & X86_EFLAGS_DF) && (reps > 1) ) in hvmemul_virtual_to_linear()
1395 uint32_t *eflags, in hvmemul_rmw() argument
1425 rc = x86_emul_rmw(mapping, bytes, eflags, state, ctxt); in hvmemul_rmw()
1436 rc = x86_emul_rmw(&data, bytes, eflags, state, ctxt); in hvmemul_rmw()
1449 uint32_t *eflags, in hvmemul_blk() argument
1479 rc = x86_emul_blk(mapping, p_data, bytes, eflags, state, ctxt); in hvmemul_blk()
1730 !!(ctxt->regs->eflags & X86_EFLAGS_DF), gpa); in hvmemul_rep_ins()
1811 !!(ctxt->regs->eflags & X86_EFLAGS_DF), gpa); in hvmemul_rep_outs()
1831 int rc, df = !!(ctxt->regs->eflags & X86_EFLAGS_DF); in hvmemul_rep_movs()
1999 bool_t df = !!(ctxt->regs->eflags & X86_EFLAGS_DF); in hvmemul_rep_stos()
[all …]
A Dhvm.c1662 void hvm_hlt(unsigned int eflags) in hvm_hlt() argument
1674 if ( unlikely(!(eflags & X86_EFLAGS_IF)) ) in hvm_hlt()
2795 if ( eflags & X86_EFLAGS_VM ) in task_switch_load_seg()
2972 unsigned int eflags, new_cpl; in hvm_task_switch() local
3036 eflags = regs->eflags; in hvm_task_switch()
3038 eflags &= ~X86_EFLAGS_NT; in hvm_task_switch()
3041 tss.eflags = eflags | extra_eflags; in hvm_task_switch()
3087 new_cpl = tss.eflags & X86_EFLAGS_VM ? 3 : tss.cs & 3; in hvm_task_switch()
3099 regs->rflags = tss.eflags | X86_EFLAGS_MBS; in hvm_task_switch()
3120 regs->eflags |= X86_EFLAGS_NT; in hvm_task_switch()
[all …]
A Ddomain.c207 uregs->rflags = regs->eflags; in arch_set_info_hvm_guest()
/xen/xen/arch/x86/x86_64/
A Dgdbstub.c47 GDB_REG32(regs->eflags); in gdb_arch_read_reg_array()
/xen/xen/arch/x86/hvm/vmx/
A Dvvmx.c481 regs->eflags &= ~X86_EFLAGS_ARITH_MASK; in vmsucceed()
487 unsigned int eflags = regs->eflags; in vmfail_valid() local
491 regs->eflags = (eflags & ~X86_EFLAGS_ARITH_MASK) | X86_EFLAGS_ZF; in vmfail_valid()
498 unsigned int eflags = regs->eflags; in vmfail_invalid() local
502 regs->eflags = (eflags & ~X86_EFLAGS_ARITH_MASK) | X86_EFLAGS_CF; in vmfail_invalid()
A Drealmode.c85 regs->eflags &= ~(X86_EFLAGS_TF | X86_EFLAGS_IF | X86_EFLAGS_RF); in realmode_deliver_exception()
A Dvmx.c600 if ( unlikely(guest_cpu_user_regs()->eflags & X86_EFLAGS_VM) ) in vmx_guest_x86_mode()
1786 if ( guest_cpu_user_regs()->eflags & X86_EFLAGS_TF ) in vmx_inject_event()
1886 (v->arch.user_regs.eflags & X86_EFLAGS_TF) && in vmx_set_info_guest()
2585 regs->eflags &= ~X86_EFLAGS_RF; in update_guest_eip()
2594 if ( regs->eflags & X86_EFLAGS_TF ) in update_guest_eip()
3517 v->arch.hvm.vmx.vm86_saved_eflags = regs->eflags; in vmx_enter_realmode()
3518 regs->eflags |= (X86_EFLAGS_VM | X86_EFLAGS_IOPL); in vmx_enter_realmode()
3787 regs->eflags &= ~(X86_EFLAGS_VM | X86_EFLAGS_IOPL); in vmx_vmexit_handler()
3788 regs->eflags |= (v->arch.hvm.vmx.vm86_saved_eflags & X86_EFLAGS_IOPL); in vmx_vmexit_handler()
3888 if ( unlikely(regs->eflags & X86_EFLAGS_TF) ) in vmx_vmexit_handler()
[all …]
/xen/xen/arch/x86/hvm/svm/
A Dsvm.c117 regs->eflags &= ~X86_EFLAGS_RF; in __update_guest_eip()
121 if ( regs->eflags & X86_EFLAGS_TF ) in __update_guest_eip()
464 if ( unlikely(guest_cpu_user_regs()->eflags & X86_EFLAGS_VM) ) in svm_guest_x86_mode()
1223 if ( (regs->eflags & X86_EFLAGS_VM) && in svm_emul_swint_injection()
1224 MASK_EXTR(regs->eflags, X86_EFLAGS_IOPL) != 3 ) in svm_emul_swint_injection()
1322 if ( regs->eflags & X86_EFLAGS_TF ) in svm_inject_event()
2158 hvm_hlt(regs->eflags); in svm_vmexit_do_hlt()
/xen/tools/debugger/kdd/
A Dkdd-xen.c225 r->eflags = cpu->rflags; in kdd_get_regs_x86_32()
246 cpu->rflags = r->eflags; in kdd_set_regs_x86_32()
A Dkdd.h353 int32_t eflags; member
/xen/xen/arch/x86/mm/
A Dguest_walk.c455 !(guest_cpu_user_regs()->eflags & X86_EFLAGS_AC)) ) in guest_walk_tables()

Completed in 84 milliseconds

12