Home
last modified time | relevance | path

Searched refs:CPUX86State (Results 1 – 25 of 94) sorted by relevance

1234

/openbmc/qemu/target/i386/emulate/
H A Dx86_flags.h28 void lflags_to_rflags(CPUX86State *env);
29 void rflags_to_lflags(CPUX86State *env);
31 bool get_CF(CPUX86State *env);
32 void set_CF(CPUX86State *env, bool val);
34 void SET_FLAGS_OxxxxC(CPUX86State *env, bool new_of, bool new_cf);
36 void SET_FLAGS_OSZAPC_SUB32(CPUX86State *env, uint32_t v1, uint32_t v2,
38 void SET_FLAGS_OSZAPC_SUB16(CPUX86State *env, uint16_t v1, uint16_t v2,
40 void SET_FLAGS_OSZAPC_SUB8(CPUX86State *env, uint8_t v1, uint8_t v2,
43 void SET_FLAGS_OSZAPC_ADD32(CPUX86State *env, uint32_t v1, uint32_t v2,
45 void SET_FLAGS_OSZAPC_ADD16(CPUX86State *env, uint16_t v1, uint16_t v2,
[all …]
H A Dx86_emu.h40 bool exec_instruction(CPUX86State *env, struct x86_decode *ins);
41 void x86_emul_raise_exception(CPUX86State *env, int exception_index, int error_code);
43 target_ulong read_reg(CPUX86State *env, int reg, int size);
44 void write_reg(CPUX86State *env, int reg, target_ulong val, int size);
47 void write_val_ext(CPUX86State *env, struct x86_decode_op *decode, target_ulong val, int size);
48 uint8_t *read_mmio(CPUX86State *env, target_ulong ptr, int bytes);
49 target_ulong read_val_ext(CPUX86State *env, struct x86_decode_op *decode, int size);
51 void exec_movzx(CPUX86State *env, struct x86_decode *decode);
52 void exec_shl(CPUX86State *env, struct x86_decode *decode);
53 void exec_movsx(CPUX86State *env, struct x86_decode *decode);
[all …]
H A Dx86_flags.c111 void SET_FLAGS_OxxxxC(CPUX86State *env, bool new_of, bool new_cf) in SET_FLAGS_OxxxxC()
118 void SET_FLAGS_OSZAPC_SUB32(CPUX86State *env, uint32_t v1, uint32_t v2, in SET_FLAGS_OSZAPC_SUB32()
124 void SET_FLAGS_OSZAPC_SUB16(CPUX86State *env, uint16_t v1, uint16_t v2, in SET_FLAGS_OSZAPC_SUB16()
130 void SET_FLAGS_OSZAPC_SUB8(CPUX86State *env, uint8_t v1, uint8_t v2, in SET_FLAGS_OSZAPC_SUB8()
136 void SET_FLAGS_OSZAPC_ADD32(CPUX86State *env, uint32_t v1, uint32_t v2, in SET_FLAGS_OSZAPC_ADD32()
142 void SET_FLAGS_OSZAPC_ADD16(CPUX86State *env, uint16_t v1, uint16_t v2, in SET_FLAGS_OSZAPC_ADD16()
148 void SET_FLAGS_OSZAPC_ADD8(CPUX86State *env, uint8_t v1, uint8_t v2, in SET_FLAGS_OSZAPC_ADD8()
154 void SET_FLAGS_OSZAP_SUB32(CPUX86State *env, uint32_t v1, uint32_t v2, in SET_FLAGS_OSZAP_SUB32()
160 void SET_FLAGS_OSZAP_SUB16(CPUX86State *env, uint16_t v1, uint16_t v2, in SET_FLAGS_OSZAP_SUB16()
166 void SET_FLAGS_OSZAP_SUB8(CPUX86State *env, uint8_t v1, uint8_t v2, in SET_FLAGS_OSZAP_SUB8()
[all …]
H A Dx86_emu.c87 target_ulong read_reg(CPUX86State *env, int reg, int size) in read_reg()
104 void write_reg(CPUX86State *env, int reg, target_ulong val, int size) in write_reg()
167 static void write_val_to_mem(CPUX86State *env, target_ulong ptr, target_ulong val, int size) in write_val_to_mem()
172 void write_val_ext(CPUX86State *env, struct x86_decode_op *decode, target_ulong val, int size) in write_val_ext()
181 uint8_t *read_mmio(CPUX86State *env, target_ulong ptr, int bytes) in read_mmio()
188 static target_ulong read_val_from_mem(CPUX86State *env, target_long ptr, int size) in read_val_from_mem()
214 target_ulong read_val_ext(CPUX86State *env, struct x86_decode_op *decode, int size) in read_val_ext()
223 static void fetch_operands(CPUX86State *env, struct x86_decode *decode, in fetch_operands()
262 static void exec_mov(CPUX86State *env, struct x86_decode *decode) in exec_mov()
271 static void exec_add(CPUX86State *env, struct x86_decode *decode) in exec_add()
[all …]
H A Dx86_decode.h305 uint32_t decode_instruction(CPUX86State *env, struct x86_decode *decode);
307 void *get_reg_ref(CPUX86State *env, int reg, int rex_present,
309 target_ulong get_reg_val(CPUX86State *env, int reg, int rex_present,
311 void calc_modrm_operand(CPUX86State *env, struct x86_decode *decode,
313 target_ulong decode_linear_addr(CPUX86State *env, struct x86_decode *decode,
317 void calc_modrm_operand16(CPUX86State *env, struct x86_decode *decode,
319 void calc_modrm_operand32(CPUX86State *env, struct x86_decode *decode,
321 void calc_modrm_operand64(CPUX86State *env, struct x86_decode *decode,
323 void set_addressing_size(CPUX86State *env, struct x86_decode *decode);
324 void set_operand_size(CPUX86State *env, struct x86_decode *decode);
H A Dx86_decode.c27 static void decode_invalid(CPUX86State *env, struct x86_decode *decode) in decode_invalid()
59 static inline uint64_t decode_bytes(CPUX86State *env, struct x86_decode *decode, in decode_bytes()
81 static inline uint8_t decode_byte(CPUX86State *env, struct x86_decode *decode) in decode_byte()
86 static inline uint16_t decode_word(CPUX86State *env, struct x86_decode *decode) in decode_word()
91 static inline uint32_t decode_dword(CPUX86State *env, struct x86_decode *decode) in decode_dword()
96 static inline uint64_t decode_qword(CPUX86State *env, struct x86_decode *decode) in decode_qword()
101 static void decode_modrm_rm(CPUX86State *env, struct x86_decode *decode, in decode_modrm_rm()
107 static void decode_modrm_reg(CPUX86State *env, struct x86_decode *decode, in decode_modrm_reg()
116 static void decode_rax(CPUX86State *env, struct x86_decode *decode, in decode_rax()
126 static inline void decode_immediate(CPUX86State *env, struct x86_decode *decode, in decode_immediate()
[all …]
/openbmc/qemu/target/i386/tcg/
H A Dhelper-tcg.h65 G_NORETURN void raise_exception(CPUX86State *env, int exception_index);
66 G_NORETURN void raise_exception_ra(CPUX86State *env, int exception_index,
68 G_NORETURN void raise_exception_err(CPUX86State *env, int exception_index,
70 G_NORETURN void raise_exception_err_ra(CPUX86State *env, int exception_index,
72 G_NORETURN void raise_interrupt(CPUX86State *nenv, int intno, int next_eip_addend);
73 G_NORETURN void handle_unaligned_access(CPUX86State *env, vaddr vaddr,
98 void cpu_load_eflags(CPUX86State *env, int eflags, int update_mask);
102 G_NORETURN void cpu_vmexit(CPUX86State *nenv, uint64_t exit_code,
104 void do_vmexit(CPUX86State *env);
108 void do_interrupt_x86_hardirq(CPUX86State *env, int intno, int is_hw);
[all …]
H A Dexcp_helper.c27 G_NORETURN void helper_raise_interrupt(CPUX86State *env, int intno, in helper_raise_interrupt()
33 G_NORETURN void helper_raise_exception(CPUX86State *env, int exception_index) in helper_raise_exception()
43 static int check_exception(CPUX86State *env, int intno, int *error_code, in check_exception()
90 void raise_interrupt2(CPUX86State *env, int intno, in raise_interrupt2()
114 G_NORETURN void raise_interrupt(CPUX86State *env, int intno, int next_eip_addend) in raise_interrupt()
119 G_NORETURN void raise_exception_err(CPUX86State *env, int exception_index, in raise_exception_err()
125 G_NORETURN void raise_exception_err_ra(CPUX86State *env, int exception_index, in raise_exception_err_ra()
131 G_NORETURN void raise_exception(CPUX86State *env, int exception_index) in raise_exception()
136 G_NORETURN void raise_exception_ra(CPUX86State *env, int exception_index, in raise_exception_ra()
142 G_NORETURN void helper_icebp(CPUX86State *env) in helper_icebp()
[all …]
H A Dmisc_helper.c31 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 Dfpu_helper.c76 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()
201 static inline int save_exception_flags(CPUX86State *env) in save_exception_flags()
208 static void merge_exception_flags(CPUX86State *env, int old_flags) in merge_exception_flags()
221 static inline floatx80 helper_fdiv(CPUX86State *env, floatx80 a, floatx80 b) in helper_fdiv()
229 static void fpu_raise_exception(CPUX86State *env, uintptr_t retaddr) in fpu_raise_exception()
[all …]
H A Dmpx_helper.c28 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 Dtcg-cpu.c35 CPUX86State *env = &cpu->env; in x86_cpu_exec_enter()
46 CPUX86State *env = &cpu->env; in x86_cpu_exec_exit()
53 CPUX86State *env = cpu_env(cs); in x86_get_tb_cpu_state()
75 CPUX86State *env = cpu_env(cs); in x86_cpu_synchronize_from_tb()
90 CPUX86State *env = &cpu->env; in x86_restore_state_to_opc()
117 int x86_mmu_index_pl(CPUX86State *env, unsigned pl) in x86_mmu_index_pl()
130 CPUX86State *env = cpu_env(cs); in x86_cpu_mmu_index()
138 CPUX86State *env = &cpu->env; in x86_debug_check_breakpoint()
H A Dint_helper.c33 void helper_divb_AL(CPUX86State *env, target_ulong t0) in helper_divb_AL()
51 void helper_idivb_AL(CPUX86State *env, target_ulong t0) in helper_idivb_AL()
69 void helper_divw_AX(CPUX86State *env, target_ulong t0) in helper_divw_AX()
88 void helper_idivw_AX(CPUX86State *env, target_ulong t0) in helper_idivw_AX()
107 void helper_divl_EAX(CPUX86State *env, target_ulong t0) in helper_divl_EAX()
126 void helper_idivl_EAX(CPUX86State *env, target_ulong t0) in helper_idivl_EAX()
167 void helper_aaa(CPUX86State *env) in helper_aaa()
192 void helper_aas(CPUX86State *env) in helper_aas()
217 void helper_daa(CPUX86State *env) in helper_daa()
245 void helper_das(CPUX86State *env) in helper_das()
[all …]
/openbmc/qemu/linux-user/i386/
H A Dtarget_cpu.h23 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/bsd-user/i386/
H A Dsignal.c27 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 Dsignal.c26 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/
H A Dhelper.c38 void cpu_sync_avx_hflag(CPUX86State *env) in cpu_sync_avx_hflag()
49 void cpu_sync_bndcs_hflags(CPUX86State *env) in cpu_sync_bndcs_hflags()
79 static void cpu_x86_version(CPUX86State *env, int *family, int *model) in cpu_x86_version()
92 int cpu_x86_support_mca_broadcast(CPUX86State *env) in cpu_x86_support_mca_broadcast()
115 CPUX86State *env = &cpu->env; in x86_cpu_set_a20()
133 void cpu_x86_update_cr0(CPUX86State *env, uint32_t new_cr0) in cpu_x86_update_cr0()
175 void cpu_x86_update_cr3(CPUX86State *env, target_ulong new_cr3) in cpu_x86_update_cr3()
185 void cpu_x86_update_cr4(CPUX86State *env, uint32_t new_cr4) in cpu_x86_update_cr4()
245 CPUX86State *env = &cpu->env; in x86_cpu_get_phys_page_attrs_debug()
388 CPUX86State *cenv = &cpu->env; in do_inject_x86_mce()
[all …]
H A Dops_sse.h57 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 Dmachine.c222 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 Dmonitor.c609 { name, offsetof(CPUX86State, segs[seg].selector), NULL, MD_I32 },\
610 { name ".base", offsetof(CPUX86State, segs[seg].base) },\
611 { name ".limit", offsetof(CPUX86State, segs[seg].limit), NULL, MD_I32 },
613 { "eax", offsetof(CPUX86State, regs[0]) },
614 { "ecx", offsetof(CPUX86State, regs[1]) },
615 { "edx", offsetof(CPUX86State, regs[2]) },
616 { "ebx", offsetof(CPUX86State, regs[3]) },
617 { "esp|sp", offsetof(CPUX86State, regs[4]) },
618 { "ebp|fp", offsetof(CPUX86State, regs[5]) },
619 { "esi", offsetof(CPUX86State, regs[6]) },
[all …]
H A Dcpu.h2153 } CPUX86State; typedef
2169 CPUX86State env;
2422 int cpu_x86_support_mca_broadcast(CPUX86State *env);
2429 int cpu_get_pic_interrupt(CPUX86State *s);
2433 void fpu_check_raise_ferr_irq(CPUX86State *s);
2439 void cpu_sync_bndcs_hflags(CPUX86State *env);
2443 static inline void cpu_x86_load_seg_cache(CPUX86State *env, in cpu_x86_load_seg_cache()
2520 CPUX86State *env = &cpu->env; in cpu_x86_load_seg_cache_sipi()
2532 int cpu_x86_get_descr_debug(CPUX86State *env, unsigned int selector,
2544 void cpu_x86_load_seg(CPUX86State *s, X86Seg seg_reg, int selector);
[all …]
/openbmc/qemu/target/i386/tcg/system/
H A Dfpu_helper.c32 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 Dmisc_helper.c31 void helper_outb(CPUX86State *env, uint32_t port, uint32_t data) in helper_outb()
37 target_ulong helper_inb(CPUX86State *env, uint32_t port) in helper_inb()
43 void helper_outw(CPUX86State *env, uint32_t port, uint32_t data) in helper_outw()
49 target_ulong helper_inw(CPUX86State *env, uint32_t port) in helper_inw()
55 void helper_outl(CPUX86State *env, uint32_t port, uint32_t data) in helper_outl()
61 target_ulong helper_inl(CPUX86State *env, uint32_t port) in helper_inl()
67 target_ulong helper_read_cr8(CPUX86State *env) in helper_read_cr8()
76 void helper_write_crN(CPUX86State *env, int reg, target_ulong t0) in helper_write_crN()
132 void helper_wrmsr(CPUX86State *env) in helper_wrmsr()
329 void helper_rdmsr(CPUX86State *env) in helper_rdmsr()
[all …]
H A Dbpt_helper.c54 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()
/openbmc/qemu/target/i386/tcg/user/
H A Dseg_helper.c28 void helper_syscall(CPUX86State *env, int next_eip_addend) in helper_syscall()
44 static void do_interrupt_user(CPUX86State *env, int intno, int is_int, in do_interrupt_user()
81 CPUX86State *env = &cpu->env; in x86_cpu_do_interrupt()
94 void cpu_x86_load_seg(CPUX86State *env, X86Seg seg_reg, int selector) in cpu_x86_load_seg()

1234