/openbmc/u-boot/arch/x86/lib/ |
H A D | bios_interrupts.c | 28 switch ((M.x86.R_EAX & 0xff00) >> 8) { in int10_handler() 42 M.x86.R_EAX &= 0x00ff; in int10_handler() 52 M.x86.R_EAX = 0x0f00 | 'A'; /* White on black 'A' */ in int10_handler() 57 debug("%c", M.x86.R_EAX & 0xff); in int10_handler() 61 M.x86.R_EAX = 0x5002; /*80 x 25 */ in int10_handler() 66 printf("Unknown INT10 function %04x\n", M.x86.R_EAX & 0xffff); in int10_handler() 74 M.x86.R_EAX = 64 * 1024; in int12_handler() 82 switch ((M.x86.R_EAX & 0xff00) >> 8) { in int16_handler() 84 M.x86.R_EAX = 0x6120; /* Space Bar, Space */ in int16_handler() 92 printf("Unknown INT16 function %04x\n", M.x86.R_EAX & 0xffff); in int16_handler() [all …]
|
H A D | bios.c | 60 .eax = M.x86.R_EAX, in int_exception_handler() 85 M.x86.intno, M.x86.R_EAX); in int_unknown_handler() 312 M.x86.R_EAX = eax; in interrupt_handler() 336 *(volatile u32 *)&eax = M.x86.R_EAX; in interrupt_handler()
|
/openbmc/qemu/target/i386/tcg/ |
H A D | int_helper.c | 38 num = (env->regs[R_EAX] & 0xffff); in helper_divb_AL() 49 env->regs[R_EAX] = (env->regs[R_EAX] & ~0xffff) | (r << 8) | q; in helper_divb_AL() 56 num = (int16_t)env->regs[R_EAX]; in helper_idivb_AL() 67 env->regs[R_EAX] = (env->regs[R_EAX] & ~0xffff) | (r << 8) | q; in helper_idivb_AL() 74 num = (env->regs[R_EAX] & 0xffff) | ((env->regs[R_EDX] & 0xffff) << 16); in helper_divw_AX() 85 env->regs[R_EAX] = (env->regs[R_EAX] & ~0xffff) | q; in helper_divw_AX() 93 num = (env->regs[R_EAX] & 0xffff) | ((env->regs[R_EDX] & 0xffff) << 16); in helper_idivw_AX() 104 env->regs[R_EAX] = (env->regs[R_EAX] & ~0xffff) | q; in helper_idivw_AX() 113 num = ((uint32_t)env->regs[R_EAX]) | ((uint64_t)((uint32_t)env->regs[R_EDX]) << 32); in helper_divl_EAX() 123 env->regs[R_EAX] = (uint32_t)q; in helper_divl_EAX() [all …]
|
H A D | misc_helper.c | 56 cpu_x86_cpuid(env, (uint32_t)env->regs[R_EAX], (uint32_t)env->regs[R_ECX], in helper_cpuid() 58 env->regs[R_EAX] = eax; in helper_cpuid() 74 env->regs[R_EAX] = (uint32_t)(val); in helper_rdtsc()
|
/openbmc/qemu/bsd-user/x86_64/ |
H A D | target_arch_cpu.h | 52 env->regs[R_EAX] = regs->rax; in target_cpu_init() 129 env->regs[R_EAX] = do_freebsd_syscall(env, in target_cpu_loop() 130 env->regs[R_EAX], in target_cpu_loop() 138 if (((abi_ulong)env->regs[R_EAX]) >= (abi_ulong)(-515)) { in target_cpu_loop() 139 env->regs[R_EAX] = -env->regs[R_EAX]; in target_cpu_loop() 169 env->regs[R_EAX] = 0; in target_cpu_clone_regs()
|
H A D | target_arch_reg.h | 78 regs->r_rax = env->regs[R_EAX]; in target_copy_regs()
|
/openbmc/qemu/target/i386/hvf/ |
H A D | hvf-cpu.c | 27 hvf_get_supported_cpuid(0x0, 0, R_EAX); in hvf_cpu_max_instance_init() 29 hvf_get_supported_cpuid(0x80000000, 0, R_EAX); in hvf_cpu_max_instance_init() 31 hvf_get_supported_cpuid(0xC0000000, 0, R_EAX); in hvf_cpu_max_instance_init() 52 int sz = hvf_get_supported_cpuid(0xd, i, R_EAX); in hvf_cpu_xsave_init()
|
H A D | x86.h | 201 #define RAX(cpu) RRX(cpu, R_EAX) 219 #define EAX(cpu) ERX(cpu, R_EAX) 229 #define AX(cpu) RX(cpu, R_EAX) 239 #define AL(cpu) RL(cpu, R_EAX) 245 #define AH(cpu) RH(cpu, R_EAX)
|
/openbmc/qemu/bsd-user/i386/ |
H A D | target_arch_cpu.h | 43 env->regs[R_EAX] = regs->eax; in target_cpu_init() 123 int32_t syscall_nr = env->regs[R_EAX]; in target_cpu_loop() 148 env->regs[R_EAX] = do_freebsd_syscall(env, in target_cpu_loop() 159 if (((abi_ulong)env->regs[R_EAX]) >= (abi_ulong)(-515)) { in target_cpu_loop() 160 env->regs[R_EAX] = -env->regs[R_EAX]; in target_cpu_loop() 194 env->regs[R_EAX] = 0; in target_cpu_clone_regs()
|
H A D | target_arch_reg.h | 68 regs->r_eax = env->regs[R_EAX]; in target_copy_regs()
|
/openbmc/qemu/hw/i386/ |
H A D | vmport.c | 109 eax = env->regs[R_EAX]; in vmport_ioport_read() 140 cpu->env.regs[R_EAX] = eax; in vmport_ioport_read() 154 cpu->env.regs[R_EAX] = vmport_ioport_read(opaque, addr, 4); in vmport_ioport_write() 176 cpu->env.regs[R_EAX] = le32_to_cpu(uuid_parts[0]); in vmport_cmd_get_bios_uuid() 180 return cpu->env.regs[R_EAX]; in vmport_cmd_get_bios_uuid() 203 cpu->env.regs[R_EAX] = (uint32_t)tsc_freq; in vmport_cmd_get_hz() 209 return cpu->env.regs[R_EAX]; in vmport_cmd_get_hz()
|
H A D | vmmouse.c | 80 data[0] = env->regs[R_EAX]; data[1] = env->regs[R_EBX]; in vmmouse_get_data() 90 env->regs[R_EAX] = data[0]; env->regs[R_EBX] = data[1]; in vmmouse_set_data()
|
/openbmc/qemu/linux-user/i386/ |
H A D | cpu_loop.c | 184 env->regs[R_EAX] = ret; in emulate_vsyscall() 225 get_task_state(cs)->orig_ax = env->regs[R_EAX]; in cpu_loop() 227 env->regs[R_EAX], in cpu_loop() 238 env->regs[R_EAX] = ret; in cpu_loop() 244 get_task_state(cs)->orig_ax = env->regs[R_EAX]; in cpu_loop() 246 env->regs[R_EAX], in cpu_loop() 257 env->regs[R_EAX] = ret; in cpu_loop() 366 env->regs[R_EAX] = regs->rax; in target_cpu_copy_regs() 376 env->regs[R_EAX] = regs->eax; in target_cpu_copy_regs()
|
H A D | signal.c | 364 __put_user(env->regs[R_EAX], &sc->eax); in setup_sigcontext() 385 __put_user(env->regs[R_EAX], &sc->rax); in setup_sigcontext() 494 env->regs[R_EAX] = sig; in setup_frame() 577 env->regs[R_EAX] = sig; in setup_rt_frame() 584 env->regs[R_EAX] = 0; in setup_rt_frame() 732 env->regs[R_EAX] = tswapl(sc->eax); in restore_sigcontext() 750 env->regs[R_EAX] = tswapl(sc->rax); in restore_sigcontext()
|
H A D | target_cpu.h | 29 env->regs[R_EAX] = 0; in cpu_clone_regs_child()
|
/openbmc/qemu/target/i386/kvm/ |
H A D | kvm-cpu.c | 25 eax = kvm_arch_get_supported_cpuid(cs->kvm_state, 0x80000008, 0, R_EAX); in kvm_set_guest_phys_bits() 118 kvm_arch_get_supported_cpuid(s, 0x0, 0, R_EAX); in kvm_cpu_max_instance_init() 120 kvm_arch_get_supported_cpuid(s, 0x80000000, 0, R_EAX); in kvm_cpu_max_instance_init() 122 kvm_arch_get_supported_cpuid(s, 0xC0000000, 0, R_EAX); in kvm_cpu_max_instance_init()
|
H A D | kvm.c | 401 case R_EAX: in cpuid_entry_get_reg() 485 } else if (function == 6 && reg == R_EAX) { in kvm_arch_get_supported_cpuid() 510 } else if (function == 7 && index == 1 && reg == R_EAX) { in kvm_arch_get_supported_cpuid() 520 (reg == R_EAX || reg == R_EDX)) { in kvm_arch_get_supported_cpuid() 546 ret = (reg == R_EAX) ? bitmask : bitmask >> 32; in kvm_arch_get_supported_cpuid() 562 } else if (function == KVM_CPUID_FEATURES && reg == R_EAX) { in kvm_arch_get_supported_cpuid() 942 {.func = HV_CPUID_ENLIGHTMENT_INFO, .reg = R_EAX, 949 {.func = HV_CPUID_FEATURES, .reg = R_EAX, 956 {.func = HV_CPUID_FEATURES, .reg = R_EAX, 970 {.func = HV_CPUID_FEATURES, .reg = R_EAX, [all …]
|
/openbmc/u-boot/drivers/bios_emulator/ |
H A D | biosemu.c | 249 M.x86.R_EAX = regs->e.eax; in BE_callRealMode() 275 regs->e.eax = M.x86.R_EAX; in BE_callRealMode() 300 M.x86.R_EAX = in->e.eax; in BE_int86() 317 out->e.eax = M.x86.R_EAX; in BE_int86() 340 M.x86.R_EAX = in->e.eax; in BE_int86x() 361 out->e.eax = M.x86.R_EAX; in BE_int86x()
|
/openbmc/u-boot/drivers/bios_emulator/x86emu/ |
H A D | decode.c | 654 return &M.x86.R_EAX; in decode_rm_long_register() 749 return M.x86.R_EAX * index; in decode_sib_si() 799 offset = M.x86.R_EAX; in decode_sib_address() 838 offset = M.x86.R_EAX; in decode_sib_address() 886 return M.x86.R_EAX; in decode_rm00_address() 971 return M.x86.R_EAX + displacement; in decode_rm01_address() 1060 return M.x86.R_EAX + displacement; in decode_rm10_address()
|
H A D | prim_ops.c | 1953 imul_long_direct(&M.x86.R_EAX,&M.x86.R_EDX,M.x86.R_EAX,s); in imul_long() 1954 if (((M.x86.R_EAX & 0x80000000) == 0 && M.x86.R_EDX == 0x00000000) || in imul_long() 1955 ((M.x86.R_EAX & 0x80000000) != 0 && M.x86.R_EDX == 0xFFFFFFFF)) { in imul_long() 2008 u64 res = (u32)M.x86.R_EAX * (u32)s; in mul_long() 2010 M.x86.R_EAX = (u32)res; in mul_long() 2017 a = M.x86.R_EAX; in mul_long() 2025 M.x86.R_EAX = (rlo_hi << 16) | (rlo_lo & 0xFFFF); in mul_long() 2097 dvd = (((s64)M.x86.R_EDX) << 32) | M.x86.R_EAX; in idiv_long() 2111 u32 l_dvd = M.x86.R_EAX; in idiv_long() 2158 M.x86.R_EAX = (u32)div; in idiv_long() [all …]
|
H A D | ops.c | 443 M.x86.R_EAX = genop_long_operation[op1](M.x86.R_EAX, srcval); in x86emuOp_genop_word_AX_IMM() 795 push_long(M.x86.R_EAX); in x86emuOp_push_all() 840 M.x86.R_EAX = pop_long(); in x86emuOp_pop_all() 2223 tmp = M.x86.R_EAX; in x86emuOp_xchg_word_AX_register() 2224 M.x86.R_EAX = *reg32; in x86emuOp_xchg_word_AX_register() 2233 M.x86.R_EAX = *reg16; in x86emuOp_xchg_word_AX_register() 2255 M.x86.R_EAX |= 0xffff0000; in x86emuOp_cbw() 2257 M.x86.R_EAX &= 0x0000ffff; in x86emuOp_cbw() 2285 if (M.x86.R_EAX & 0x80000000) { in x86emuOp_cwd() 2464 M.x86.R_EAX = fetch_data_long(offset); in x86emuOp_mov_AX_M_IMM() [all …]
|
/openbmc/qemu/target/i386/tcg/sysemu/ |
H A D | svm_helper.c | 170 addr = env->regs[R_EAX]; in helper_vmrun() 172 addr = (uint32_t)env->regs[R_EAX]; in helper_vmrun() 234 env->vm_hsave + offsetof(struct vmcb, save.rax), env->regs[R_EAX]); in helper_vmrun() 371 env->regs[R_EAX] = x86_ldq_phys(cs, in helper_vmrun() 483 addr = env->regs[R_EAX]; in helper_vmload() 485 addr = (uint32_t)env->regs[R_EAX]; in helper_vmload() 544 addr = env->regs[R_EAX]; in helper_vmsave() 546 addr = (uint32_t)env->regs[R_EAX]; in helper_vmsave() 812 env->vm_vmcb + offsetof(struct vmcb, save.rax), env->regs[R_EAX]); in do_vmexit() 888 env->regs[R_EAX] = x86_ldq_phys(cs, env->vm_hsave + in do_vmexit()
|
H A D | smm_helper.c | 88 x86_stq_phys(cs, sm_state + 0x7ff8, env->regs[R_EAX]); in do_smm_enter() 122 x86_stl_phys(cs, sm_state + 0x7fd0, env->regs[R_EAX]); in do_smm_enter() 222 env->regs[R_EAX] = x86_ldq_phys(cs, sm_state + 0x7ff8); in helper_rsm() 270 env->regs[R_EAX] = x86_ldl_phys(cs, sm_state + 0x7fd0); in helper_rsm()
|
/openbmc/linux/tools/arch/x86/kcpuid/ |
H A D | kcpuid.c | 38 R_EAX = 0, enumerator 360 reg_index = R_EAX; in parse_line() 487 decode_bits(leaf->eax, &leaf->info[R_EAX], R_EAX); in show_leaf()
|
/openbmc/qemu/linux-user/ |
H A D | vm86.c | 60 target_v86->regs.eax = tswap32(env->regs[R_EAX]); in save_v86_state() 82 env->regs[R_EAX] = ts->vm86_saved_regs.eax; in save_v86_state() 107 env->regs[R_EAX] = retval; in return_to_32bit() 156 if (intno == 0x21 && is_revectored((env->regs[R_EAX] >> 8) & 0xff, in do_int()
|