/openbmc/qemu/target/i386/hvf/ |
H A D | x86_flags.h | 28 void lflags_to_rflags(CPUX86State *env); 29 void rflags_to_lflags(CPUX86State *env); 31 bool get_PF(CPUX86State *env); 32 void set_PF(CPUX86State *env, bool val); 33 bool get_CF(CPUX86State *env); 34 void set_CF(CPUX86State *env, bool val); 35 bool get_AF(CPUX86State *env); 36 void set_AF(CPUX86State *env, bool val); 37 bool get_ZF(CPUX86State *env); 38 void set_ZF(CPUX86State *env, bool val); [all …]
|
H A D | x86_emu.h | 27 bool exec_instruction(CPUX86State *env, struct x86_decode *ins); 32 void simulate_rdmsr(CPUX86State *env); 33 void simulate_wrmsr(CPUX86State *env); 35 target_ulong read_reg(CPUX86State *env, int reg, int size); 36 void write_reg(CPUX86State *env, int reg, target_ulong val, int size); 39 void write_val_ext(CPUX86State *env, target_ulong ptr, target_ulong val, int size); 40 uint8_t *read_mmio(CPUX86State *env, target_ulong ptr, int bytes); 41 target_ulong read_val_ext(CPUX86State *env, target_ulong ptr, int size); 43 void exec_movzx(CPUX86State *env, struct x86_decode *decode); 44 void exec_shl(CPUX86State *env, struct x86_decode *decode); [all …]
|
H A D | x86_flags.c | 116 void SET_FLAGS_OxxxxC(CPUX86State *env, uint32_t new_of, uint32_t new_cf) in SET_FLAGS_OxxxxC() 123 void SET_FLAGS_OSZAPC_SUB32(CPUX86State *env, uint32_t v1, uint32_t v2, in SET_FLAGS_OSZAPC_SUB32() 129 void SET_FLAGS_OSZAPC_SUB16(CPUX86State *env, uint16_t v1, uint16_t v2, in SET_FLAGS_OSZAPC_SUB16() 135 void SET_FLAGS_OSZAPC_SUB8(CPUX86State *env, uint8_t v1, uint8_t v2, in SET_FLAGS_OSZAPC_SUB8() 141 void SET_FLAGS_OSZAPC_ADD32(CPUX86State *env, uint32_t v1, uint32_t v2, in SET_FLAGS_OSZAPC_ADD32() 147 void SET_FLAGS_OSZAPC_ADD16(CPUX86State *env, uint16_t v1, uint16_t v2, in SET_FLAGS_OSZAPC_ADD16() 153 void SET_FLAGS_OSZAPC_ADD8(CPUX86State *env, uint8_t v1, uint8_t v2, in SET_FLAGS_OSZAPC_ADD8() 159 void SET_FLAGS_OSZAP_SUB32(CPUX86State *env, uint32_t v1, uint32_t v2, in SET_FLAGS_OSZAP_SUB32() 165 void SET_FLAGS_OSZAP_SUB16(CPUX86State *env, uint16_t v1, uint16_t v2, in SET_FLAGS_OSZAP_SUB16() 171 void SET_FLAGS_OSZAP_SUB8(CPUX86State *env, uint8_t v1, uint8_t v2, in SET_FLAGS_OSZAP_SUB8() [all …]
|
H A D | x86_emu.c | 93 target_ulong read_reg(CPUX86State *env, int reg, int size) in read_reg() 110 void write_reg(CPUX86State *env, int reg, target_ulong val, int size) in write_reg() 173 static bool is_host_reg(CPUX86State *env, target_ulong ptr) in is_host_reg() 178 void write_val_ext(CPUX86State *env, target_ulong ptr, target_ulong val, int size) in write_val_ext() 187 uint8_t *read_mmio(CPUX86State *env, target_ulong ptr, int bytes) in read_mmio() 194 target_ulong read_val_ext(CPUX86State *env, target_ulong ptr, int size) in read_val_ext() 224 static void fetch_operands(CPUX86State *env, struct x86_decode *decode, in fetch_operands() 263 static void exec_mov(CPUX86State *env, struct x86_decode *decode) in exec_mov() 272 static void exec_add(CPUX86State *env, struct x86_decode *decode) in exec_add() 278 static void exec_or(CPUX86State *env, struct x86_decode *decode) in exec_or() [all …]
|
H A D | x86_decode.h | 304 uint32_t decode_instruction(CPUX86State *env, struct x86_decode *decode); 306 target_ulong get_reg_ref(CPUX86State *env, int reg, int rex_present, 308 target_ulong get_reg_val(CPUX86State *env, int reg, int rex_present, 310 void calc_modrm_operand(CPUX86State *env, struct x86_decode *decode, 312 target_ulong decode_linear_addr(CPUX86State *env, struct x86_decode *decode, 316 void calc_modrm_operand16(CPUX86State *env, struct x86_decode *decode, 318 void calc_modrm_operand32(CPUX86State *env, struct x86_decode *decode, 320 void calc_modrm_operand64(CPUX86State *env, struct x86_decode *decode, 322 void set_addressing_size(CPUX86State *env, struct x86_decode *decode); 323 void set_operand_size(CPUX86State *env, struct x86_decode *decode);
|
H A D | x86_decode.c | 29 static void decode_invalid(CPUX86State *env, struct x86_decode *decode) in decode_invalid() 61 static inline uint64_t decode_bytes(CPUX86State *env, struct x86_decode *decode, in decode_bytes() 83 static inline uint8_t decode_byte(CPUX86State *env, struct x86_decode *decode) in decode_byte() 88 static inline uint16_t decode_word(CPUX86State *env, struct x86_decode *decode) in decode_word() 93 static inline uint32_t decode_dword(CPUX86State *env, struct x86_decode *decode) in decode_dword() 98 static inline uint64_t decode_qword(CPUX86State *env, struct x86_decode *decode) in decode_qword() 103 static void decode_modrm_rm(CPUX86State *env, struct x86_decode *decode, in decode_modrm_rm() 109 static void decode_modrm_reg(CPUX86State *env, struct x86_decode *decode, in decode_modrm_reg() 118 static void decode_rax(CPUX86State *env, struct x86_decode *decode, in decode_rax() 128 static inline void decode_immediate(CPUX86State *env, struct x86_decode *decode, in decode_immediate() [all …]
|
/openbmc/qemu/target/i386/tcg/ |
H A D | helper-tcg.h | 64 G_NORETURN void raise_exception(CPUX86State *env, int exception_index); 65 G_NORETURN void raise_exception_ra(CPUX86State *env, int exception_index, 67 G_NORETURN void raise_exception_err(CPUX86State *env, int exception_index, 69 G_NORETURN void raise_exception_err_ra(CPUX86State *env, int exception_index, 71 G_NORETURN void raise_interrupt(CPUX86State *nenv, int intno, int next_eip_addend); 72 G_NORETURN void handle_unaligned_access(CPUX86State *env, vaddr vaddr, 97 void cpu_load_eflags(CPUX86State *env, int eflags, int update_mask); 101 G_NORETURN void cpu_vmexit(CPUX86State *nenv, uint32_t exit_code, 103 void do_vmexit(CPUX86State *env); 107 void do_interrupt_x86_hardirq(CPUX86State *env, int intno, int is_hw); [all …]
|
H A D | excp_helper.c | 28 G_NORETURN void helper_raise_interrupt(CPUX86State *env, int intno, in helper_raise_interrupt() 34 G_NORETURN void helper_raise_exception(CPUX86State *env, int exception_index) in helper_raise_exception() 44 static int check_exception(CPUX86State *env, int intno, int *error_code, in check_exception() 91 void raise_interrupt2(CPUX86State *env, int intno, in raise_interrupt2() 115 G_NORETURN void raise_interrupt(CPUX86State *env, int intno, int next_eip_addend) in raise_interrupt() 120 G_NORETURN void raise_exception_err(CPUX86State *env, int exception_index, in raise_exception_err() 126 G_NORETURN void raise_exception_err_ra(CPUX86State *env, int exception_index, in raise_exception_err_ra() 132 G_NORETURN void raise_exception(CPUX86State *env, int exception_index) in raise_exception() 137 G_NORETURN void raise_exception_ra(CPUX86State *env, int exception_index, in raise_exception_ra() 143 G_NORETURN void helper_icebp(CPUX86State *env) in helper_icebp() [all …]
|
H A D | fpu_helper.c | 76 static inline void fpush(CPUX86State *env) in fpush() 82 static inline void fpop(CPUX86State *env) in fpop() 108 static inline double floatx80_to_double(CPUX86State *env, floatx80 a) in floatx80_to_double() 119 static inline floatx80 double_to_floatx80(CPUX86State *env, double a) in double_to_floatx80() 130 static void fpu_set_exception(CPUX86State *env, int mask) in fpu_set_exception() 138 void cpu_init_fp_statuses(CPUX86State *env) in cpu_init_fp_statuses() 178 static inline uint8_t save_exception_flags(CPUX86State *env) in save_exception_flags() 185 static void merge_exception_flags(CPUX86State *env, uint8_t old_flags) in merge_exception_flags() 198 static inline floatx80 helper_fdiv(CPUX86State *env, floatx80 a, floatx80 b) in helper_fdiv() 206 static void fpu_raise_exception(CPUX86State *env, uintptr_t retaddr) in fpu_raise_exception() [all …]
|
H A D | misc_helper.c | 31 void cpu_load_eflags(CPUX86State *env, int eflags, int update_mask) in cpu_load_eflags() 40 void helper_into(CPUX86State *env, int next_eip_addend) in helper_into() 50 void helper_cpuid(CPUX86State *env) in helper_cpuid() 64 void helper_rdtsc(CPUX86State *env) in helper_rdtsc() 78 G_NORETURN void helper_rdpmc(CPUX86State *env) in helper_rdpmc() 91 G_NORETURN void helper_pause(CPUX86State *env) in helper_pause() 104 uint64_t helper_rdpkru(CPUX86State *env, uint32_t ecx) in helper_rdpkru() 116 void helper_wrpkru(CPUX86State *env, uint32_t ecx, uint64_t val) in helper_wrpkru() 131 target_ulong HELPER(rdpid)(CPUX86State *env) in HELPER()
|
H A D | mpx_helper.c | 28 void helper_bndck(CPUX86State *env, uint32_t fail) in helper_bndck() 36 static uint64_t lookup_bte64(CPUX86State *env, uint64_t base, uintptr_t ra) in lookup_bte64() 56 static uint32_t lookup_bte32(CPUX86State *env, uint32_t base, uintptr_t ra) in lookup_bte32() 76 uint64_t helper_bndldx64(CPUX86State *env, target_ulong base, target_ulong ptr) in helper_bndldx64() 93 uint64_t helper_bndldx32(CPUX86State *env, target_ulong base, target_ulong ptr) in helper_bndldx32() 109 void helper_bndstx64(CPUX86State *env, target_ulong base, target_ulong ptr, in helper_bndstx64() 121 void helper_bndstx32(CPUX86State *env, target_ulong base, target_ulong ptr, in helper_bndstx32() 133 void helper_bnd_jmp(CPUX86State *env) in helper_bnd_jmp()
|
H A D | int_helper.c | 34 void helper_divb_AL(CPUX86State *env, target_ulong t0) in helper_divb_AL() 52 void helper_idivb_AL(CPUX86State *env, target_ulong t0) in helper_idivb_AL() 70 void helper_divw_AX(CPUX86State *env, target_ulong t0) in helper_divw_AX() 89 void helper_idivw_AX(CPUX86State *env, target_ulong t0) in helper_idivw_AX() 108 void helper_divl_EAX(CPUX86State *env, target_ulong t0) in helper_divl_EAX() 127 void helper_idivl_EAX(CPUX86State *env, target_ulong t0) in helper_idivl_EAX() 168 void helper_aaa(CPUX86State *env) in helper_aaa() 193 void helper_aas(CPUX86State *env) in helper_aas() 218 void helper_daa(CPUX86State *env) in helper_daa() 246 void helper_das(CPUX86State *env) in helper_das() [all …]
|
/openbmc/qemu/linux-user/i386/ |
H A D | target_cpu.h | 23 static inline void cpu_clone_regs_child(CPUX86State *env, target_ulong newsp, in cpu_clone_regs_child() 32 static inline void cpu_clone_regs_parent(CPUX86State *env, unsigned flags) in cpu_clone_regs_parent() 36 abi_long do_arch_prctl(CPUX86State *env, int code, abi_ulong addr); 39 abi_long do_set_thread_area(CPUX86State *env, abi_ulong ptr); 41 static inline void cpu_set_tls(CPUX86State *env, target_ulong newtls) in cpu_set_tls() 47 static inline void cpu_set_tls(CPUX86State *env, target_ulong newtls) in cpu_set_tls() 53 static inline abi_ulong get_sp_from_cpustate(CPUX86State *state) in get_sp_from_cpustate()
|
/openbmc/qemu/target/i386/ |
H A D | helper.c | 35 void cpu_sync_avx_hflag(CPUX86State *env) in cpu_sync_avx_hflag() 46 void cpu_sync_bndcs_hflags(CPUX86State *env) in cpu_sync_bndcs_hflags() 76 static void cpu_x86_version(CPUX86State *env, int *family, int *model) in cpu_x86_version() 89 int cpu_x86_support_mca_broadcast(CPUX86State *env) in cpu_x86_support_mca_broadcast() 112 CPUX86State *env = &cpu->env; in x86_cpu_set_a20() 130 void cpu_x86_update_cr0(CPUX86State *env, uint32_t new_cr0) in cpu_x86_update_cr0() 172 void cpu_x86_update_cr3(CPUX86State *env, target_ulong new_cr3) in cpu_x86_update_cr3() 182 void cpu_x86_update_cr4(CPUX86State *env, uint32_t new_cr4) in cpu_x86_update_cr4() 242 CPUX86State *env = &cpu->env; in x86_cpu_get_phys_page_attrs_debug() 385 CPUX86State *cenv = &cpu->env; in do_inject_x86_mce() [all …]
|
H A D | ops_sse.h | 57 void glue(helper_psrlw, SUFFIX)(CPUX86State *env, Reg *d, Reg *s, Reg *c) in glue() 72 void glue(helper_psllw, SUFFIX)(CPUX86State *env, Reg *d, Reg *s, Reg *c) in glue() 87 void glue(helper_psraw, SUFFIX)(CPUX86State *env, Reg *d, Reg *s, Reg *c) in glue() 100 void glue(helper_psrld, SUFFIX)(CPUX86State *env, Reg *d, Reg *s, Reg *c) in glue() 115 void glue(helper_pslld, SUFFIX)(CPUX86State *env, Reg *d, Reg *s, Reg *c) in glue() 130 void glue(helper_psrad, SUFFIX)(CPUX86State *env, Reg *d, Reg *s, Reg *c) in glue() 143 void glue(helper_psrlq, SUFFIX)(CPUX86State *env, Reg *d, Reg *s, Reg *c) in glue() 158 void glue(helper_psllq, SUFFIX)(CPUX86State *env, Reg *d, Reg *s, Reg *c) in glue() 174 void glue(helper_psrldq, SUFFIX)(CPUX86State *env, Reg *d, Reg *s, Reg *c) in glue() 192 void glue(helper_pslldq, SUFFIX)(CPUX86State *env, Reg *d, Reg *s, Reg *c) in glue() [all …]
|
H A D | machine.c | 222 CPUX86State *env = &cpu->env; in cpu_pre_save() 317 CPUX86State *env = &cpu->env; in cpu_post_load() 439 CPUX86State *env = &cpu->env; in exception_info_needed() 531 CPUX86State *env = &cpu->env; in fpop_ip_dp_needed() 552 CPUX86State *env = &cpu->env; in tsc_adjust_needed() 571 CPUX86State *env = &cpu->env; in msr_smi_count_needed() 590 CPUX86State *env = &cpu->env; in tscdeadline_needed() 609 CPUX86State *env = &cpu->env; in misc_enable_needed() 617 CPUX86State *env = &cpu->env; in feature_control_needed() 647 CPUX86State *env = &cpu->env; in pmu_enable_needed() [all …]
|
H A D | cpu.h | 2056 } CPUX86State; typedef 2072 CPUX86State env; 2294 int cpu_x86_support_mca_broadcast(CPUX86State *env); 2299 int cpu_get_pic_interrupt(CPUX86State *s); 2303 void fpu_check_raise_ferr_irq(CPUX86State *s); 2309 void cpu_sync_bndcs_hflags(CPUX86State *env); 2313 static inline void cpu_x86_load_seg_cache(CPUX86State *env, in cpu_x86_load_seg_cache() 2383 CPUX86State *env = &cpu->env; in cpu_x86_load_seg_cache_sipi() 2393 int cpu_x86_get_descr_debug(CPUX86State *env, unsigned int selector, 2405 void cpu_x86_load_seg(CPUX86State *s, X86Seg seg_reg, int selector); [all …]
|
H A D | monitor.c | 610 { name, offsetof(CPUX86State, segs[seg].selector), NULL, MD_I32 },\ 611 { name ".base", offsetof(CPUX86State, segs[seg].base) },\ 612 { name ".limit", offsetof(CPUX86State, segs[seg].limit), NULL, MD_I32 }, 614 { "eax", offsetof(CPUX86State, regs[0]) }, 615 { "ecx", offsetof(CPUX86State, regs[1]) }, 616 { "edx", offsetof(CPUX86State, regs[2]) }, 617 { "ebx", offsetof(CPUX86State, regs[3]) }, 618 { "esp|sp", offsetof(CPUX86State, regs[4]) }, 619 { "ebp|fp", offsetof(CPUX86State, regs[5]) }, 620 { "esi", offsetof(CPUX86State, regs[6]) }, [all …]
|
/openbmc/qemu/bsd-user/i386/ |
H A D | signal.c | 27 abi_long set_sigtramp_args(CPUX86State *env, int sig, in set_sigtramp_args() 40 abi_long setup_sigframe_arch(CPUX86State *env, abi_ulong frame_addr, in setup_sigframe_arch() 50 abi_long get_mcontext(CPUX86State *regs, target_mcontext_t *mcp, int flags) in get_mcontext() 57 abi_long set_mcontext(CPUX86State *regs, target_mcontext_t *mcp, int srflag) in set_mcontext() 63 abi_long get_ucontext_sigreturn(CPUX86State *regs, abi_ulong target_sf, in get_ucontext_sigreturn()
|
/openbmc/qemu/bsd-user/x86_64/ |
H A D | signal.c | 26 abi_long set_sigtramp_args(CPUX86State *regs, in set_sigtramp_args() 38 abi_long setup_sigframe_arch(CPUX86State *env, abi_ulong frame_addr, in setup_sigframe_arch() 48 abi_long get_mcontext(CPUX86State *regs, in get_mcontext() 56 abi_long set_mcontext(CPUX86State *regs, in set_mcontext() 63 abi_long get_ucontext_sigreturn(CPUX86State *regs, in get_ucontext_sigreturn()
|
/openbmc/qemu/target/i386/tcg/sysemu/ |
H A D | misc_helper.c | 30 void helper_outb(CPUX86State *env, uint32_t port, uint32_t data) in helper_outb() 36 target_ulong helper_inb(CPUX86State *env, uint32_t port) in helper_inb() 42 void helper_outw(CPUX86State *env, uint32_t port, uint32_t data) in helper_outw() 48 target_ulong helper_inw(CPUX86State *env, uint32_t port) in helper_inw() 54 void helper_outl(CPUX86State *env, uint32_t port, uint32_t data) in helper_outl() 60 target_ulong helper_inl(CPUX86State *env, uint32_t port) in helper_inl() 66 target_ulong helper_read_cr8(CPUX86State *env) in helper_read_cr8() 75 void helper_write_crN(CPUX86State *env, int reg, target_ulong t0) in helper_write_crN() 131 void helper_wrmsr(CPUX86State *env) in helper_wrmsr() 328 void helper_rdmsr(CPUX86State *env) in helper_rdmsr() [all …]
|
H A D | bpt_helper.c | 54 static int hw_breakpoint_insert(CPUX86State *env, int index) in hw_breakpoint_insert() 98 static void hw_breakpoint_remove(CPUX86State *env, int index) in hw_breakpoint_remove() 124 void cpu_x86_update_dr7(CPUX86State *env, uint32_t new_dr7) in cpu_x86_update_dr7() 167 bool check_hw_breakpoints(CPUX86State *env, bool force_dr6_update) in check_hw_breakpoints() 212 CPUX86State *env = &cpu->env; in breakpoint_handler() 237 target_ulong helper_get_dr(CPUX86State *env, int reg) in helper_get_dr() 256 void helper_set_dr(CPUX86State *env, int reg, target_ulong t0) in helper_set_dr() 294 void helper_bpt_io(CPUX86State *env, uint32_t port, in helper_bpt_io()
|
H A D | fpu_helper.c | 32 void fpu_check_raise_ferr_irq(CPUX86State *env) in fpu_check_raise_ferr_irq() 44 CPUX86State *env = &X86_CPU(first_cpu)->env; in cpu_clear_ignne() 50 CPUX86State *env = &X86_CPU(first_cpu)->env; in cpu_set_ignne()
|
H A D | seg_helper.c | 30 void helper_syscall(CPUX86State *env, int next_eip_addend) in helper_syscall() 85 void handle_even_inj(CPUX86State *env, int intno, int is_int, in handle_even_inj() 116 CPUX86State *env = &cpu->env; in x86_cpu_do_interrupt() 134 CPUX86State *env = &x86_cpu->env; in x86_cpu_exec_halt() 168 CPUX86State *env = &cpu->env; in x86_cpu_exec_interrupt() 228 void helper_check_io(CPUX86State *env, uint32_t addr, uint32_t size) in helper_check_io()
|
/openbmc/qemu/target/i386/tcg/user/ |
H A D | seg_helper.c | 29 void helper_syscall(CPUX86State *env, int next_eip_addend) in helper_syscall() 45 static void do_interrupt_user(CPUX86State *env, int intno, int is_int, in do_interrupt_user() 82 CPUX86State *env = &cpu->env; in x86_cpu_do_interrupt() 95 void cpu_x86_load_seg(CPUX86State *env, X86Seg seg_reg, int selector) in cpu_x86_load_seg()
|