/qemu/target/sparc/ |
H A D | win_helper.c | 54 target_ulong cpu_get_psr(CPUSPARCState *env) in cpu_get_psr() 135 void helper_rett(CPUSPARCState *env) in helper_rett() 154 void helper_save(CPUSPARCState *env) in helper_save() 165 void helper_restore(CPUSPARCState *env) in helper_restore() 196 void helper_save(CPUSPARCState *env) in helper_save() 218 void helper_restore(CPUSPARCState *env) in helper_restore() 235 void helper_flushw(CPUSPARCState *env) in helper_flushw() 245 void helper_saved(CPUSPARCState *env) in helper_saved() 255 void helper_restored(CPUSPARCState *env) in helper_restored() 432 void helper_done(CPUSPARCState *env) in helper_done() [all …]
|
H A D | fop_helper.c | 191 float32 helper_fitos(CPUSPARCState *env, int32_t src) in helper_fitos() 205 Int128 helper_fitoq(CPUSPARCState *env, int32_t src) in helper_fitoq() 227 Int128 helper_fxtoq(CPUSPARCState *env, int64_t src) in helper_fxtoq() 250 float32 helper_fqtos(CPUSPARCState *env, Int128 src) in helper_fqtos() 257 Int128 helper_fstoq(CPUSPARCState *env, float32 src) in helper_fstoq() 264 float64 helper_fqtod(CPUSPARCState *env, Int128 src) in helper_fqtod() 271 Int128 helper_fdtoq(CPUSPARCState *env, float64 src) in helper_fdtoq() 293 int32_t helper_fqtoi(CPUSPARCState *env, Int128 src) in helper_fqtoi() 316 int64_t helper_fqtox(CPUSPARCState *env, Int128 src) in helper_fqtox() 409 target_ulong cpu_get_fsr(CPUSPARCState *env) in cpu_get_fsr() [all …]
|
/qemu/target/mips/tcg/sysemu/ |
H A D | cp0_helper.c | 38 CPUMIPSState *env = &c->env; in mips_vpe_is_wfi() local 50 CPUMIPSState *env = &c->env; in mips_vp_is_wfi() local 205 uint32_t cpu_mips_get_random(CPUMIPSState *env) in cpu_mips_get_random() 369 target_ulong helper_mfc0_count(CPUMIPSState *env) in helper_mfc0_count() 403 target_ulong helper_mfc0_maar(CPUMIPSState *env) in helper_mfc0_maar() 1292 #define MTC0_MAAR_MASK(env) \ argument 1487 target_ulong helper_mftdsp(CPUMIPSState *env) in helper_mftdsp() 1572 target_ulong helper_dvpe(CPUMIPSState *env) in helper_dvpe() 1588 target_ulong helper_evpe(CPUMIPSState *env) in helper_evpe() 1608 target_ulong helper_dvp(CPUMIPSState *env) in helper_dvp() [all …]
|
H A D | special_helper.c | 29 target_ulong helper_di(CPUMIPSState *env) in helper_di() 37 target_ulong helper_ei(CPUMIPSState *env) in helper_ei() 45 static void debug_pre_eret(CPUMIPSState *env) in debug_pre_eret() 60 static void debug_post_eret(CPUMIPSState *env) in debug_post_eret() 93 CPUMIPSState *env = cpu_env(cs); in mips_io_recompile_replay_branch() local 104 static inline void exception_return(CPUMIPSState *env) in exception_return() 118 void helper_eret(CPUMIPSState *env) in helper_eret() 125 void helper_eretnc(CPUMIPSState *env) in helper_eretnc() 130 void helper_deret(CPUMIPSState *env) in helper_deret() 142 void helper_cache(CPUMIPSState *env, target_ulong addr, uint32_t op) in helper_cache()
|
/qemu/target/ppc/ |
H A D | cpu_init.c | 64 static void register_745_sprs(CPUPPCState *env) in register_745_sprs() 101 static void register_755_sprs(CPUPPCState *env) in register_755_sprs() 1725 static void init_excp_G2(CPUPPCState *env) in init_excp_G2() 6661 CPUPPCState *env = &cpu->env; in cpu_ppc_set_vhyp() local 6674 CPUPPCState *env = &cpu->env; in cpu_ppc_set_1lpar() local 6693 CPUPPCState *env = &cpu->env; in init_ppc_proc() local 6834 CPUPPCState *env = &cpu->env; in ppc_cpu_realize() local 7144 CPUPPCState *env = &cpu->env; in ppc_cpu_reset_hold() local 7274 CPUPPCState *env = &cpu->env; in ppc_cpu_instance_init() local 7318 CPUPPCState *env = cpu_env(cs); in ppc_disas_set_info() local [all …]
|
H A D | timebase_helper.c | 30 target_ulong helper_load_tbl(CPUPPCState *env) in helper_load_tbl() 35 target_ulong helper_load_tbu(CPUPPCState *env) in helper_load_tbu() 40 target_ulong helper_load_atbl(CPUPPCState *env) in helper_load_atbl() 45 target_ulong helper_load_atbu(CPUPPCState *env) in helper_load_atbu() 50 target_ulong helper_load_vtb(CPUPPCState *env) in helper_load_vtb() 56 target_ulong helper_load_purr(CPUPPCState *env) in helper_load_purr() 124 target_ulong helper_load_decr(CPUPPCState *env) in helper_load_decr() 134 target_ulong helper_load_hdecr(CPUPPCState *env) in helper_load_hdecr() 190 target_ulong helper_load_40x_pit(CPUPPCState *env) in helper_load_40x_pit() 301 static void tb_state_machine_step(CPUPPCState *env) in tb_state_machine_step() [all …]
|
H A D | helper_regs.c | 32 void hreg_swap_gpr_tgpr(CPUPPCState *env) in hreg_swap_gpr_tgpr() 204 void hreg_compute_hflags(CPUPPCState *env) in hreg_compute_hflags() 214 void hreg_update_pmu_hflags(CPUPPCState *env) in hreg_update_pmu_hflags() 319 void store_40x_sler(CPUPPCState *env, uint32_t val) in store_40x_sler() 398 CPUPPCState *env = &cpu->env; in register_generic_sprs() local 505 void register_non_embedded_sprs(CPUPPCState *env) in register_non_embedded_sprs() 524 void register_sdr1_sprs(CPUPPCState *env) in register_sdr1_sprs() 547 void register_low_BATs(CPUPPCState *env) in register_low_BATs() 619 void register_high_BATs(CPUPPCState *env) in register_high_BATs() 729 void register_thrm_sprs(CPUPPCState *env) in register_thrm_sprs() [all …]
|
H A D | cpu.c | 30 target_ulong cpu_read_xer(const CPUPPCState *env) in cpu_read_xer() 42 void cpu_write_xer(CPUPPCState *env, target_ulong xer) in cpu_write_xer() 55 void ppc_store_vscr(CPUPPCState *env, uint32_t vscr) in ppc_store_vscr() 65 uint32_t ppc_get_vscr(CPUPPCState *env) in ppc_get_vscr() 71 void ppc_set_cr(CPUPPCState *env, uint64_t cr) in ppc_set_cr() 79 uint64_t ppc_get_cr(const CPUPPCState *env) in ppc_get_cr() 89 void ppc_store_msr(CPUPPCState *env, target_ulong value) in ppc_store_msr() 98 CPUPPCState *env = &cpu->env; in ppc_store_lpcr() local 108 void ppc_update_ciabr(CPUPPCState *env) in ppc_update_ciabr() 133 void ppc_update_daw0(CPUPPCState *env) in ppc_update_daw0() [all …]
|
H A D | power8-pmu.c | 25 static bool pmc_has_overflow_enabled(CPUPPCState *env, int sprn) in pmc_has_overflow_enabled() 38 static void pmu_update_summaries(CPUPPCState *env) in pmu_update_summaries() 85 void pmu_mmcr01_updated(CPUPPCState *env) in pmu_mmcr01_updated() 168 static void pmu_update_cycles(CPUPPCState *env) in pmu_update_cycles() 230 static void pmu_update_overflow_timers(CPUPPCState *env) in pmu_update_overflow_timers() 243 static void pmu_delete_timers(CPUPPCState *env) in pmu_delete_timers() 269 void helper_store_mmcr1(CPUPPCState *env, uint64_t value) in helper_store_mmcr1() 296 CPUPPCState *env = &cpu->env; in perfm_alert() local 324 void helper_handle_pmc5_overflow(CPUPPCState *env) in helper_handle_pmc5_overflow() 331 void helper_insns_inc(CPUPPCState *env, uint32_t num_insns) in helper_insns_inc() [all …]
|
/qemu/target/riscv/ |
H A D | fpu_helper.c | 27 target_ulong riscv_cpu_get_fflags(CPURISCVState *env) in riscv_cpu_get_fflags() 41 void riscv_cpu_set_fflags(CPURISCVState *env, target_ulong hard) in riscv_cpu_set_fflags() 54 void helper_set_rounding_mode(CPURISCVState *env, uint32_t rm) in helper_set_rounding_mode() 280 uint64_t helper_fsqrt_s(CPURISCVState *env, uint64_t rs1) in helper_fsqrt_s() 371 uint64_t helper_fround_s(CPURISCVState *env, uint64_t rs1) in helper_fround_s() 439 uint64_t helper_fcvt_s_d(CPURISCVState *env, uint64_t rs1) in helper_fcvt_s_d() 444 uint64_t helper_fcvt_d_s(CPURISCVState *env, uint64_t rs1) in helper_fcvt_d_s() 450 uint64_t helper_fsqrt_d(CPURISCVState *env, uint64_t frs1) in helper_fsqrt_d() 613 uint64_t helper_fsqrt_h(CPURISCVState *env, uint64_t rs1) in helper_fsqrt_h() 660 uint64_t helper_fround_h(CPURISCVState *env, uint64_t rs1) in helper_fround_h() [all …]
|
H A D | csr.c | 79 static RISCVException fs(CPURISCVState *env, int csrno) in fs() 94 static RISCVException vs(CPURISCVState *env, int csrno) in vs() 107 static RISCVException ctr(CPURISCVState *env, int csrno) in ctr() 163 static RISCVException ctr32(CPURISCVState *env, int csrno) in ctr32() 172 static RISCVException zcmt(CPURISCVState *env, int csrno) in zcmt() 189 static RISCVException mctr(CPURISCVState *env, int csrno) in mctr() 230 static RISCVException any(CPURISCVState *env, int csrno) in any() 235 static RISCVException any32(CPURISCVState *env, int csrno) in any32() 263 static RISCVException smode(CPURISCVState *env, int csrno) in smode() 412 static RISCVException sstc(CPURISCVState *env, int csrno) in sstc() [all …]
|
H A D | debug.c | 166 target_ulong tselect_csr_read(CPURISCVState *env) in tselect_csr_read() 503 itrigger_get_count(CPURISCVState *env, int index) in itrigger_get_count() 530 bool riscv_itrigger_enabled(CPURISCVState *env) in riscv_itrigger_enabled() 550 void helper_itrigger_match(CPURISCVState *env) in helper_itrigger_match() 623 void riscv_itrigger_update_priv(CPURISCVState *env) in riscv_itrigger_update_priv() 751 target_ulong tinfo_csr_read(CPURISCVState *env) in tinfo_csr_read() 761 CPURISCVState *env = &cpu->env; in riscv_cpu_debug_excp_handler() local 777 CPURISCVState *env = &cpu->env; in riscv_cpu_debug_check_breakpoint() local 836 CPURISCVState *env = &cpu->env; in riscv_cpu_debug_check_watchpoint() local 906 void riscv_trigger_realize(CPURISCVState *env) in riscv_trigger_realize() [all …]
|
H A D | op_helper.c | 42 target_ulong helper_csrr(CPURISCVState *env, int csr) in helper_csrr() 72 target_ulong helper_csrrw(CPURISCVState *env, int csr, in helper_csrrw() 99 void helper_csrw_i128(CPURISCVState *env, int csr, in helper_csrw_i128() 203 static void check_zicbom_access(CPURISCVState *env, in check_zicbom_access() 264 target_ulong helper_sret(CPURISCVState *env) in helper_sret() 319 target_ulong helper_mret(CPURISCVState *env) in helper_mret() 363 void helper_wfi(CPURISCVState *env) in helper_wfi() 383 void helper_tlb_flush(CPURISCVState *env) in helper_tlb_flush() 398 void helper_tlb_flush_all(CPURISCVState *env) in helper_tlb_flush_all() 404 void helper_hyp_tlb_flush(CPURISCVState *env) in helper_hyp_tlb_flush() [all …]
|
/qemu/target/sh4/ |
H A D | op_helper.c | 49 void helper_ldtlb(CPUSH4State *env) in helper_ldtlb() 59 void raise_exception(CPUSH4State *env, int index, in raise_exception() 78 void helper_raise_fpu_disable(CPUSH4State *env) in helper_raise_fpu_disable() 83 void helper_raise_slot_fpu_disable(CPUSH4State *env) in helper_raise_slot_fpu_disable() 88 void helper_sleep(CPUSH4State *env) in helper_sleep() 97 void helper_trapa(CPUSH4State *env, uint32_t tra) in helper_trapa() 103 void helper_exclusive(CPUSH4State *env) in helper_exclusive() 124 void helper_discard_movcal_backup(CPUSH4State *env) in helper_discard_movcal_backup() 138 void helper_ocbi(CPUSH4State *env, uint32_t address) in helper_ocbi() 205 void helper_ld_fpscr(CPUSH4State *env, uint32_t val) in helper_ld_fpscr() [all …]
|
/qemu/linux-user/xtensa/ |
H A D | cpu_loop.c | 26 static void xtensa_rfw(CPUXtensaState *env) in xtensa_rfw() 32 static void xtensa_rfwu(CPUXtensaState *env) in xtensa_rfwu() 38 static void xtensa_rfwo(CPUXtensaState *env) in xtensa_rfwo() 44 static void xtensa_overflow4(CPUXtensaState *env) in xtensa_overflow4() 53 static void xtensa_underflow4(CPUXtensaState *env) in xtensa_underflow4() 62 static void xtensa_overflow8(CPUXtensaState *env) in xtensa_overflow8() 76 static void xtensa_underflow8(CPUXtensaState *env) in xtensa_underflow8() 90 static void xtensa_overflow12(CPUXtensaState *env) in xtensa_overflow12() 108 static void xtensa_underflow12(CPUXtensaState *env) in xtensa_underflow12() 126 void cpu_loop(CPUXtensaState *env) in cpu_loop() [all …]
|
/qemu/target/i386/hvf/ |
H A D | x86_emu.c | 93 target_ulong read_reg(CPUX86State *env, int reg, int size) in read_reg() 173 static bool is_host_reg(CPUX86State *env, target_ulong ptr) in is_host_reg() 666 void simulate_rdmsr(CPUX86State *env) in simulate_rdmsr() 767 void simulate_wrmsr(CPUX86State *env) in simulate_wrmsr() 936 void exec_shl(CPUX86State *env, struct x86_decode *decode) in exec_shl() 1023 void exec_ror(CPUX86State *env, struct x86_decode *decode) in exec_ror() 1101 void exec_rol(CPUX86State *env, struct x86_decode *decode) in exec_rol() 1183 void exec_rcl(CPUX86State *env, struct x86_decode *decode) in exec_rcl() 1268 void exec_rcr(CPUX86State *env, struct x86_decode *decode) in exec_rcr() 1423 CPUX86State *env = &cpu->env; in load_regs() local [all …]
|
/qemu/target/loongarch/tcg/ |
H A D | fpu_helper.c | 29 void restore_fp_status(CPULoongArchState *env) in restore_fp_status() 80 static void update_fcsr0(CPULoongArchState *env, uintptr_t pc) in update_fcsr0() 257 uint64_t helper_fsqrt_s(CPULoongArchState *env, uint64_t fj) in helper_fsqrt_s() 266 uint64_t helper_fsqrt_d(CPULoongArchState *env, uint64_t fj) in helper_fsqrt_d() 275 uint64_t helper_frecip_s(CPULoongArchState *env, uint64_t fj) in helper_frecip_s() 284 uint64_t helper_frecip_d(CPULoongArchState *env, uint64_t fj) in helper_frecip_d() 293 uint64_t helper_frsqrt_s(CPULoongArchState *env, uint64_t fj) in helper_frsqrt_s() 304 uint64_t helper_frsqrt_d(CPULoongArchState *env, uint64_t fj) in helper_frsqrt_d() 314 uint64_t helper_flogb_s(CPULoongArchState *env, uint64_t fj) in helper_flogb_s() 329 uint64_t helper_flogb_d(CPULoongArchState *env, uint64_t fj) in helper_flogb_d() [all …]
|
/qemu/target/rx/ |
H A D | op_helper.c | 49 void helper_set_psw(CPURXState *env, uint32_t psw) in helper_set_psw() 59 uint32_t helper_pack_psw(CPURXState *env) in helper_pack_psw() 200 void helper_scmpu(CPURXState *env) in helper_scmpu() 237 void helper_sstr(CPURXState *env, uint32_t sz) in helper_sstr() 269 void helper_smovu(CPURXState *env) in helper_smovu() 274 void helper_smovf(CPURXState *env) in helper_smovf() 279 void helper_smovb(CPURXState *env) in helper_smovb() 324 void helper_rmpa(CPURXState *env, uint32_t sz) in helper_rmpa() 382 void helper_satr(CPURXState *env) in helper_satr() 448 G_NORETURN void helper_wait(CPURXState *env) in helper_wait() [all …]
|
/qemu/target/mips/tcg/ |
H A D | vr54xx_helper.c | 27 static inline uint64_t get_HILO(CPUMIPSState *env) in get_HILO() 47 target_ulong helper_muls(CPUMIPSState *env, target_ulong arg1, in helper_muls() 54 target_ulong helper_mulsu(CPUMIPSState *env, target_ulong arg1, in helper_mulsu() 61 target_ulong helper_macc(CPUMIPSState *env, target_ulong arg1, in helper_macc() 68 target_ulong helper_macchi(CPUMIPSState *env, target_ulong arg1, in helper_macchi() 75 target_ulong helper_maccu(CPUMIPSState *env, target_ulong arg1, in helper_maccu() 82 target_ulong helper_macchiu(CPUMIPSState *env, target_ulong arg1, in helper_macchiu() 89 target_ulong helper_msac(CPUMIPSState *env, target_ulong arg1, in helper_msac() 96 target_ulong helper_msachi(CPUMIPSState *env, target_ulong arg1, in helper_msachi() 103 target_ulong helper_msacu(CPUMIPSState *env, target_ulong arg1, in helper_msacu() [all …]
|
H A D | fpu_helper.c | 1216 uint64_t helper_float_add_d(CPUMIPSState *env, in helper_float_add_d() 1226 uint32_t helper_float_add_s(CPUMIPSState *env, in helper_float_add_s() 1236 uint64_t helper_float_add_ps(CPUMIPSState *env, in helper_float_add_ps() 1252 uint64_t helper_float_sub_d(CPUMIPSState *env, in helper_float_sub_d() 1262 uint32_t helper_float_sub_s(CPUMIPSState *env, in helper_float_sub_s() 1272 uint64_t helper_float_sub_ps(CPUMIPSState *env, in helper_float_sub_ps() 1288 uint64_t helper_float_mul_d(CPUMIPSState *env, in helper_float_mul_d() 1298 uint32_t helper_float_mul_s(CPUMIPSState *env, in helper_float_mul_s() 1308 uint64_t helper_float_mul_ps(CPUMIPSState *env, in helper_float_mul_ps() 1324 uint64_t helper_float_div_d(CPUMIPSState *env, in helper_float_div_d() [all …]
|
/qemu/target/arm/ |
H A D | helper.c | 1439 void pmu_op_start(CPUARMState *env) in pmu_op_start() 1448 void pmu_op_finish(CPUARMState *env) in pmu_op_finish() 2670 CPUARMState *env = &cpu->env; in gt_update_irq() local 8704 CPUARMState *env = &cpu->env; in register_cp_regs_for_features() local 9998 CPUARMState *env = &cpu->env; in add_cpreg_to_hashtable() local 10756 CPUARMState *env = cpu_env(cs); in arm_phys_excp_target_el() local 11164 CPUARMState *env = &cpu->env; in arm_cpu_do_interrupt_aarch32_hyp() local 11243 CPUARMState *env = &cpu->env; in arm_cpu_do_interrupt_aarch32() local 11538 CPUARMState *env = &cpu->env; in arm_cpu_do_interrupt_aarch64() local 11772 CPUARMState *env = &cpu->env; in tcg_handle_semihosting() local [all …]
|
/qemu/target/mips/sysemu/ |
H A D | cp0_timer.c | 30 static uint32_t cpu_mips_get_count_val(CPUMIPSState *env) in cpu_mips_get_count_val() 38 static void cpu_mips_timer_update(CPUMIPSState *env) in cpu_mips_timer_update() 54 static void cpu_mips_timer_expire(CPUMIPSState *env) in cpu_mips_timer_expire() 63 uint32_t cpu_mips_get_count(CPUMIPSState *env) in cpu_mips_get_count() 81 void cpu_mips_store_count(CPUMIPSState *env, uint32_t count) in cpu_mips_store_count() 99 void cpu_mips_store_compare(CPUMIPSState *env, uint32_t value) in cpu_mips_store_compare() 111 void cpu_mips_start_count(CPUMIPSState *env) in cpu_mips_start_count() 116 void cpu_mips_stop_count(CPUMIPSState *env) in cpu_mips_stop_count() 125 CPUMIPSState *env; in mips_timer_cb() local 138 CPUMIPSState *env = &cpu->env; in cpu_mips_clock_init() local
|
/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() 60 target_ulong helper_inl(CPUX86State *env, uint32_t port) in helper_inl() 66 target_ulong helper_read_crN(CPUX86State *env, int reg) in helper_read_crN() 141 void helper_wrmsr(CPUX86State *env) in helper_wrmsr() 338 void helper_rdmsr(CPUX86State *env) in helper_rdmsr() 514 void helper_flush_page(CPUX86State *env, target_ulong addr) in helper_flush_page() 520 void do_hlt(CPUX86State *env) in do_hlt() [all …]
|
H A D | svm_helper.c | 77 static void svm_load_seg_cache(CPUX86State *env, int mmu_idx, in svm_load_seg_cache() 87 static inline bool is_efer_invalid_state (CPUX86State *env) in is_efer_invalid_state() 122 static inline bool virtual_gif_enabled(CPUX86State *env) in virtual_gif_enabled() 150 static inline bool virtual_gif_set(CPUX86State *env) in virtual_gif_set() 460 void helper_vmmcall(CPUX86State *env) in helper_vmmcall() 466 void helper_vmload(CPUX86State *env, int aflag) in helper_vmload() 527 void helper_vmsave(CPUX86State *env, int aflag) in helper_vmsave() 578 void helper_stgi(CPUX86State *env) in helper_stgi() 590 void helper_clgi(CPUX86State *env) in helper_clgi() 602 bool cpu_svm_has_intercept(CPUX86State *env, uint32_t type) in cpu_svm_has_intercept() [all …]
|
/qemu/target/i386/tcg/ |
H A D | fpu_helper.c | 397 void helper_fpush(CPUX86State *env) in helper_fpush() 402 void helper_fpop(CPUX86State *env) in helper_fpop() 407 void helper_fdecstp(CPUX86State *env) in helper_fdecstp() 413 void helper_fincstp(CPUX86State *env) in helper_fincstp() 730 void helper_fclex(CPUX86State *env) in helper_fclex() 735 void helper_fwait(CPUX86State *env) in helper_fwait() 761 void helper_fninit(CPUX86State *env) in helper_fninit() 1061 void helper_f2xm1(CPUX86State *env) in helper_f2xm1() 1222 void helper_fptan(CPUX86State *env) in helper_fptan() 2304 void helper_fsin(CPUX86State *env) in helper_fsin() [all …]
|