/openbmc/qemu/linux-user/hexagon/ |
H A D | target_elf.h | 21 static inline const char *cpu_get_model(uint32_t eflags) in cpu_get_model() argument 28 if (eflags == 0x04 || /* v5 */ in cpu_get_model() 29 eflags == 0x05 || /* v55 */ in cpu_get_model() 30 eflags == 0x60 || /* v60 */ in cpu_get_model() 31 eflags == 0x61 || /* v61 */ in cpu_get_model() 32 eflags == 0x62 || /* v62 */ in cpu_get_model() 33 eflags == 0x65 || /* v65 */ in cpu_get_model() 34 eflags == 0x66 || /* v66 */ in cpu_get_model() 35 eflags == 0x67 || /* v67 */ in cpu_get_model() 36 eflags == 0x8067 || /* v67t */ in cpu_get_model() [all …]
|
/openbmc/qemu/target/i386/tcg/ |
H A D | int_helper.c | 172 int eflags; in helper_aaa() local 174 eflags = cpu_cc_compute_all(env); in helper_aaa() 175 af = eflags & CC_A; in helper_aaa() 183 eflags |= CC_C | CC_A; in helper_aaa() 185 eflags &= ~(CC_C | CC_A); in helper_aaa() 189 CC_SRC = eflags; in helper_aaa() 197 int eflags; in helper_aas() local 199 eflags = cpu_cc_compute_all(env); in helper_aas() 200 af = eflags & CC_A; in helper_aas() 208 eflags |= CC_C | CC_A; in helper_aas() [all …]
|
H A D | misc_helper.c | 31 void cpu_load_eflags(CPUX86State *env, int eflags, int update_mask) in cpu_load_eflags() argument 33 CC_SRC = eflags & (CC_O | CC_S | CC_Z | CC_A | CC_P | CC_C); in cpu_load_eflags() 35 env->df = 1 - (2 * ((eflags >> 10) & 1)); in cpu_load_eflags() 36 env->eflags = (env->eflags & ~update_mask) | in cpu_load_eflags() 37 (eflags & update_mask) | 0x2; in cpu_load_eflags() 42 int eflags; in helper_into() local 44 eflags = cpu_cc_compute_all(env); in helper_into() 45 if (eflags & CC_O) { in helper_into()
|
H A D | tcg-cpu.c | 35 CC_SRC = env->eflags & (CC_O | CC_S | CC_Z | CC_A | CC_P | CC_C); in x86_cpu_exec_enter() 36 env->df = 1 - (2 * ((env->eflags >> 10) & 1)); in x86_cpu_exec_enter() 38 env->eflags &= ~(DF_MASK | CC_O | CC_S | CC_Z | CC_A | CC_P | CC_C); in x86_cpu_exec_enter() 46 env->eflags = cpu_compute_eflags(env); in x86_cpu_exec_exit() 103 return !(env->eflags & RF_MASK); in x86_debug_check_breakpoint()
|
H A D | cc_helper.c | 329 uint32_t eflags; in helper_read_eflags() local 331 eflags = cpu_cc_compute_all(env); in helper_read_eflags() 332 eflags |= (env->df & DF_MASK); in helper_read_eflags() 333 eflags |= env->eflags & ~(VM_MASK | RF_MASK); in helper_read_eflags() 334 return eflags; in helper_read_eflags()
|
/openbmc/linux/arch/arm/kernel/ |
H A D | elf.c | 12 unsigned int eflags; in elf_check_arch() local 25 eflags = x->e_flags; in elf_check_arch() 26 if ((eflags & EF_ARM_EABI_MASK) == EF_ARM_EABI_UNKNOWN) { in elf_check_arch() 30 if ((eflags & EF_ARM_APCS_26) && !(elf_hwcap & HWCAP_26BIT)) in elf_check_arch() 33 flt_fmt = eflags & (EF_ARM_VFP_FLOAT | EF_ARM_SOFT_FLOAT); in elf_check_arch() 45 unsigned int eflags = x->e_flags; in elf_set_personality() local 57 if ((eflags & EF_ARM_EABI_MASK) == EF_ARM_EABI_UNKNOWN && in elf_set_personality() 58 (eflags & EF_ARM_APCS_26)) in elf_set_personality() 72 eflags & (EF_ARM_EABI_MASK | EF_ARM_SOFT_FLOAT)) { in elf_set_personality()
|
/openbmc/qemu/target/i386/ |
H A D | cpu-dump.c | 348 int eflags, i, nb; in x86_cpu_dump_state() local 351 eflags = cpu_compute_eflags(env); in x86_cpu_dump_state() 375 env->eip, eflags, in x86_cpu_dump_state() 376 eflags & DF_MASK ? 'D' : '-', in x86_cpu_dump_state() 377 eflags & CC_O ? 'O' : '-', in x86_cpu_dump_state() 378 eflags & CC_S ? 'S' : '-', in x86_cpu_dump_state() 379 eflags & CC_Z ? 'Z' : '-', in x86_cpu_dump_state() 380 eflags & CC_A ? 'A' : '-', in x86_cpu_dump_state() 381 eflags & CC_P ? 'P' : '-', in x86_cpu_dump_state() 382 eflags & CC_C ? 'C' : '-', in x86_cpu_dump_state() [all …]
|
/openbmc/qemu/linux-user/ |
H A D | vm86.c | 75 set_flags(env->eflags, ts->v86flags, VIF_MASK | ts->v86mask); in save_v86_state() 76 target_v86->regs.eflags = tswap32(env->eflags); in save_v86_state() 79 env->eflags, env->segs[R_CS].selector, env->eip); in save_v86_state() 90 env->eflags = ts->vm86_saved_regs.eflags; in save_v86_state() 120 env->eflags &= ~TF_MASK; in clear_TF() 125 env->eflags &= ~AC_MASK; in clear_AC() 134 flags = env->eflags & RETURN_MASK; in get_vflags() 228 ts->vm86_saved_regs.eflags = env->eflags; in do_vm86() 241 ts->v86flags = tswap32(target_v86->regs.eflags); in do_vm86() 242 env->eflags = (env->eflags & ~SAFE_MASK) | in do_vm86() [all …]
|
/openbmc/qemu/target/i386/hvf/ |
H A D | x86_flags.c | 296 env->eflags |= get_CF(env) ? CC_C : 0; in lflags_to_rflags() 297 env->eflags |= get_PF(env) ? CC_P : 0; in lflags_to_rflags() 298 env->eflags |= get_AF(env) ? CC_A : 0; in lflags_to_rflags() 299 env->eflags |= get_ZF(env) ? CC_Z : 0; in lflags_to_rflags() 300 env->eflags |= get_SF(env) ? CC_S : 0; in lflags_to_rflags() 301 env->eflags |= get_OF(env) ? CC_O : 0; in lflags_to_rflags() 307 set_OF(env, env->eflags & CC_O); in rflags_to_lflags() 308 set_SF(env, env->eflags & CC_S); in rflags_to_lflags() 309 set_ZF(env, env->eflags & CC_Z); in rflags_to_lflags() 310 set_AF(env, env->eflags & CC_A); in rflags_to_lflags() [all …]
|
H A D | x86_task.c | 41 tss->eflags = (uint32_t)env->eflags; in save_state_to_tss32() 67 env->eflags = tss->eflags | 2; in load_state_from_tss32() 159 env->eflags &= ~NT_MASK; in vmx_handle_task_switch()
|
/openbmc/u-boot/arch/x86/include/asm/ |
H A D | ptrace.h | 43 long eflags; member 70 long eflags; member 76 long eflags; member 95 #define user_mode(regs) ((VM_MASK & (regs)->eflags) || (3 & (regs)->xcs))
|
/openbmc/qemu/linux-user/m68k/ |
H A D | target_elf.h | 10 static inline const char *cpu_get_model(uint32_t eflags) in cpu_get_model() argument 12 if (eflags == 0 || (eflags & EF_M68K_M68000)) { in cpu_get_model()
|
/openbmc/qemu/linux-user/mips/ |
H A D | target_elf.h | 10 static inline const char *cpu_get_model(uint32_t eflags) in cpu_get_model() argument 12 if ((eflags & EF_MIPS_ARCH) == EF_MIPS_ARCH_32R6) { in cpu_get_model() 15 if (eflags & EF_MIPS_NAN2008) { in cpu_get_model()
|
/openbmc/linux/tools/testing/selftests/x86/ |
H A D | helpers.h | 16 static inline void set_eflags(unsigned long eflags) in set_eflags() argument 19 __builtin_ia32_writeeflags_u64(eflags); in set_eflags() 21 __builtin_ia32_writeeflags_u32(eflags); in set_eflags()
|
H A D | entry_from_vm86.c | 300 v86.regs.eflags |= X86_EFLAGS_VIP; in main() 301 v86.regs.eflags &= ~X86_EFLAGS_IF; in main() 305 v86.regs.eflags = X86_EFLAGS_VIP; in main() 310 v86.regs.eflags = X86_EFLAGS_VIP; in main() 315 v86.regs.eflags = 0; in main() 319 v86.regs.eflags = 0; in main()
|
/openbmc/qemu/linux-user/mips64/ |
H A D | target_elf.h | 10 static inline const char *cpu_get_model(uint32_t eflags) in cpu_get_model() argument 12 switch (eflags & EF_MIPS_MACH) { in cpu_get_model() 26 switch (eflags & EF_MIPS_ARCH) { in cpu_get_model()
|
/openbmc/linux/arch/loongarch/kernel/ |
H A D | signal.c | 68 extern asmlinkage int _save_lbt_context(void __user *regs, void __user *eflags); 69 extern asmlinkage int _restore_lbt_context(void __user *regs, void __user *eflags); 236 uint32_t __user *eflags = (uint32_t *)&ctx->eflags; in copy_lbt_to_sigcontext() local 242 err |= __put_user(current->thread.lbt.eflags, eflags); in copy_lbt_to_sigcontext() 251 uint32_t __user *eflags = (uint32_t *)&ctx->eflags; in copy_lbt_from_sigcontext() local 257 err |= __get_user(current->thread.lbt.eflags, eflags); in copy_lbt_from_sigcontext() 341 uint32_t __user *eflags = (uint32_t *)&ctx->eflags; in save_hw_lbt_context() local 343 return _save_lbt_context(regs, eflags); in save_hw_lbt_context() 349 uint32_t __user *eflags = (uint32_t *)&ctx->eflags; in restore_hw_lbt_context() local 351 return _restore_lbt_context(regs, eflags); in restore_hw_lbt_context() [all …]
|
H A D | lbt.S | 35 x86mfflag t1, 0x3f # save eflags 54 ldptr.d t1, a0, THREAD_EFLAGS # restore eflags 87 x86mfflag t1, 0x3f # save eflags 107 EX ld.w t1, a1, 0 # restore eflags
|
/openbmc/qemu/tests/tcg/i386/ |
H A D | test-i386.c | 815 long eflags, fpus; in test_fcmp() local 838 : "=r" (eflags), "=a" (fpus) in test_fcmp() 841 a, b, fpus & FPUS_EMASK, eflags & (CC_Z | CC_P | CC_C)); in test_fcmp() 847 : "=r" (eflags), "=a" (fpus) in test_fcmp() 850 a, b, fpus & FPUS_EMASK, eflags & (CC_Z | CC_P | CC_C)); in test_fcmp() 983 #define TEST_FCMOV(a, b, eflags, CC)\ argument 990 : "0" (a), "u" (b), "g" (eflags));\ 992 CC, (long)eflags, res);\ 998 long eflags, i; in test_fcmov() local 1003 eflags = 0; in test_fcmov() [all …]
|
/openbmc/u-boot/arch/x86/cpu/i386/ |
H A D | interrupt.c | 69 unsigned long cs, eip, eflags; in dump_regs() local 89 eflags = regs->context.ctx2.eflags; in dump_regs() 96 eflags = regs->context.ctx1.eflags; in dump_regs() 101 (u16)cs, eip, eflags); in dump_regs()
|
/openbmc/linux/arch/x86/include/uapi/asm/ |
H A D | ptrace.h | 33 long eflags; member 73 unsigned long eflags; member
|
/openbmc/linux/drivers/infiniband/hw/qib/ |
H A D | qib_driver.c | 293 u32 ctxt, u32 eflags, u32 l, u32 etail, in qib_rcv_hdrerr() argument 298 if (eflags & (QLOGIC_IB_RHF_H_ICRCERR | QLOGIC_IB_RHF_H_VCRCERR)) in qib_rcv_hdrerr() 300 else if (eflags == QLOGIC_IB_RHF_H_TIDERR) { in qib_rcv_hdrerr() 451 u32 eflags, etype, tlen, i = 0, updegr = 0, crcs = 0; in qib_kreceive() local 473 eflags = qib_hdrget_err_flags(rhf_addr); in qib_kreceive() 489 if (!eflags) { in qib_kreceive() 497 if (etype == RCVHQ_RCV_TYPE_NON_KD && !eflags && in qib_kreceive() 508 if (unlikely(eflags)) in qib_kreceive() 509 crcs += qib_rcv_hdrerr(rcd, ppd, rcd->ctxt, eflags, l, in qib_kreceive()
|
/openbmc/linux/drivers/gpio/ |
H A D | gpiolib-cdev.c | 889 static int hte_edge_setup(struct line *line, u64 eflags) in hte_edge_setup() argument 895 if (eflags & GPIO_V2_LINE_FLAG_EDGE_RISING) in hte_edge_setup() 899 if (eflags & GPIO_V2_LINE_FLAG_EDGE_FALLING) in hte_edge_setup() 919 static int hte_edge_setup(struct line *line, u64 eflags) in hte_edge_setup() argument 1023 u64 eflags, edflags = READ_ONCE(line->edflags); in debounce_work_func() local 1044 eflags = edflags & GPIO_V2_LINE_EDGE_FLAGS; in debounce_work_func() 1045 if (!eflags) in debounce_work_func() 1053 if (((eflags == GPIO_V2_LINE_FLAG_EDGE_RISING) && !level) || in debounce_work_func() 1054 ((eflags == GPIO_V2_LINE_FLAG_EDGE_FALLING) && level)) in debounce_work_func() 1191 u64 eflags; in edge_detector_setup() local [all …]
|
/openbmc/linux/arch/arc/kernel/ |
H A D | process.c | 279 unsigned int eflags; in elf_check_arch() local 287 eflags = x->e_flags; in elf_check_arch() 288 if ((eflags & EF_ARC_OSABI_MSK) != EF_ARC_OSABI_CURRENT) { in elf_check_arch()
|
/openbmc/linux/drivers/infiniband/hw/hfi1/ |
H A D | trace_misc.h | 74 __field(u64, eflags) 82 __entry->eflags = rhf_err_flags(packet->rhf); 93 __entry->eflags,
|