/openbmc/qemu/target/mips/tcg/sysemu/ |
H A D | cp0_helper.c | 37 CPUMIPSState *env = &c->env; in mips_vpe_is_wfi() local 49 CPUMIPSState *env = &c->env; in mips_vp_is_wfi() local 204 uint32_t cpu_mips_get_random(CPUMIPSState *env) in cpu_mips_get_random() 368 target_ulong helper_mfc0_count(CPUMIPSState *env) in helper_mfc0_count() 402 target_ulong helper_mfc0_maar(CPUMIPSState *env) in helper_mfc0_maar() 1291 #define MTC0_MAAR_MASK(env) \ argument 1486 target_ulong helper_mftdsp(CPUMIPSState *env) in helper_mftdsp() 1571 target_ulong helper_dvpe(CPUMIPSState *env) in helper_dvpe() 1587 target_ulong helper_evpe(CPUMIPSState *env) in helper_evpe() 1607 target_ulong helper_dvp(CPUMIPSState *env) in helper_dvp() [all …]
|
/openbmc/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() 539 target_ulong cpu_get_fsr(CPUSPARCState *env) in cpu_get_fsr() [all …]
|
/openbmc/qemu/target/ppc/ |
H A D | cpu_init.c | 65 static void register_745_sprs(CPUPPCState *env) in register_745_sprs() 102 static void register_755_sprs(CPUPPCState *env) in register_755_sprs() 1726 static void init_excp_G2(CPUPPCState *env) in init_excp_G2() 6771 CPUPPCState *env = &cpu->env; in cpu_ppc_set_vhyp() local 6785 CPUPPCState *env = &cpu->env; in cpu_ppc_set_1lpar() local 6805 CPUPPCState *env = &cpu->env; in init_ppc_proc() local 6948 CPUPPCState *env = &cpu->env; in ppc_cpu_realize() local 7259 CPUPPCState *env = &cpu->env; in ppc_cpu_reset_hold() local 7389 CPUPPCState *env = &cpu->env; in ppc_cpu_instance_init() local 7434 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() 121 target_ulong helper_load_decr(CPUPPCState *env) in helper_load_decr() 131 target_ulong helper_load_hdecr(CPUPPCState *env) in helper_load_hdecr() 184 target_ulong helper_load_40x_pit(CPUPPCState *env) in helper_load_40x_pit() 317 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() 51 static bool hreg_check_bhrb_enable(CPUPPCState *env) in hreg_check_bhrb_enable() 241 void hreg_compute_hflags(CPUPPCState *env) in hreg_compute_hflags() 251 void hreg_update_pmu_hflags(CPUPPCState *env) in hreg_update_pmu_hflags() 435 CPUPPCState *env = &cpu->env; in register_generic_sprs() local 542 void register_non_embedded_sprs(CPUPPCState *env) in register_non_embedded_sprs() 561 void register_sdr1_sprs(CPUPPCState *env) in register_sdr1_sprs() 584 void register_low_BATs(CPUPPCState *env) in register_low_BATs() 656 void register_high_BATs(CPUPPCState *env) in register_high_BATs() 765 void register_thrm_sprs(CPUPPCState *env) in register_thrm_sprs() [all …]
|
H A D | excp_helper.c | 294 CPUPPCState *env = &cpu->env; in ppc_excp_apply_ail() local 391 CPUPPCState *env = &cpu->env; in powerpc_reset_excp_state() local 401 CPUPPCState *env = &cpu->env; in powerpc_set_excp_state() local 457 void helper_attn(CPUPPCState *env) in helper_attn() 484 CPUPPCState *env = &cpu->env; in powerpc_excp_40x() local 592 CPUPPCState *env = &cpu->env; in powerpc_excp_6xx() local 735 CPUPPCState *env = &cpu->env; in powerpc_excp_7xx() local 885 CPUPPCState *env = &cpu->env; in powerpc_excp_74xx() local 1029 CPUPPCState *env = &cpu->env; in powerpc_excp_booke() local 1263 CPUPPCState *env = &cpu->env; in is_prefix_insn_excp() local [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 static void hreg_bhrb_filter_update(CPUPPCState *env) in hreg_bhrb_filter_update() 116 void pmu_mmcr01a_updated(CPUPPCState *env) in pmu_mmcr01a_updated() 201 static void pmu_update_cycles(CPUPPCState *env) in pmu_update_cycles() 263 static void pmu_update_overflow_timers(CPUPPCState *env) in pmu_update_overflow_timers() 276 static void pmu_delete_timers(CPUPPCState *env) in pmu_delete_timers() 302 void helper_store_mmcr1(CPUPPCState *env, uint64_t value) in helper_store_mmcr1() 336 CPUPPCState *env = &cpu->env; in perfm_alert() local 364 void helper_handle_pmc5_overflow(CPUPPCState *env) in helper_handle_pmc5_overflow() [all …]
|
H A D | mmu_helper.c | 123 static void booke206_flush_tlb(CPUPPCState *env, int flags, in booke206_flush_tlb() 249 void ppc_tlb_invalidate_all(CPUPPCState *env) in ppc_tlb_invalidate_all() 385 void helper_tlbia(CPUPPCState *env) in helper_tlbia() 390 void helper_tlbie(CPUPPCState *env, target_ulong addr) in helper_tlbie() 549 void helper_tlbiva(CPUPPCState *env, target_ulong addr) in helper_tlbiva() 582 void helper_6xx_tlbd(CPUPPCState *env, target_ulong EPN) in helper_6xx_tlbd() 977 static ppcmas_tlb_t *booke206_cur_tlb(CPUPPCState *env) in booke206_cur_tlb() 1021 void helper_booke206_tlbwe(CPUPPCState *env) in helper_booke206_tlbwe() 1149 void helper_booke206_tlbre(CPUPPCState *env) in helper_booke206_tlbre() 1349 void helper_check_tlb_flush_local(CPUPPCState *env) in helper_check_tlb_flush_local() [all …]
|
H A D | misc_helper.c | 34 void helper_load_dump_spr(CPUPPCState *env, uint32_t sprn) in helper_load_dump_spr() 40 void helper_store_dump_spr(CPUPPCState *env, uint32_t sprn) in helper_store_dump_spr() 63 void helper_spr_write_CTRL(CPUPPCState *env, uint32_t sprn, in helper_spr_write_CTRL() 163 void helper_store_sdr1(CPUPPCState *env, target_ulong val) in helper_store_sdr1() 172 void helper_store_ptcr(CPUPPCState *env, target_ulong val) in helper_store_ptcr() 240 target_ulong helper_load_dpdes(CPUPPCState *env) in helper_load_dpdes() 304 void helper_store_sprc(CPUPPCState *env, target_ulong val) in helper_store_sprc() 314 target_ulong helper_load_sprd(CPUPPCState *env) in helper_load_sprd() 423 void helper_fixup_thrm(CPUPPCState *env) in helper_fixup_thrm() 461 void helper_clrbhrb(CPUPPCState *env) in helper_clrbhrb() [all …]
|
/openbmc/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 | 78 static RISCVException fs(CPURISCVState *env, int csrno) in fs() 93 static RISCVException vs(CPURISCVState *env, int csrno) in vs() 106 static RISCVException ctr(CPURISCVState *env, int csrno) in ctr() 162 static RISCVException ctr32(CPURISCVState *env, int csrno) in ctr32() 171 static RISCVException zcmt(CPURISCVState *env, int csrno) in zcmt() 188 static RISCVException mctr(CPURISCVState *env, int csrno) in mctr() 256 static RISCVException any(CPURISCVState *env, int csrno) in any() 261 static RISCVException any32(CPURISCVState *env, int csrno) in any32() 438 static RISCVException sstc(CPURISCVState *env, int csrno) in sstc() 491 static RISCVException satp(CPURISCVState *env, int csrno) in satp() [all …]
|
H A D | debug.c | 166 target_ulong tselect_csr_read(CPURISCVState *env) in tselect_csr_read() 573 itrigger_get_count(CPURISCVState *env, int index) in itrigger_get_count() 600 bool riscv_itrigger_enabled(CPURISCVState *env) in riscv_itrigger_enabled() 620 void helper_itrigger_match(CPURISCVState *env) in helper_itrigger_match() 693 void riscv_itrigger_update_priv(CPURISCVState *env) in riscv_itrigger_update_priv() 821 target_ulong tinfo_csr_read(CPURISCVState *env) in tinfo_csr_read() 831 CPURISCVState *env = &cpu->env; in riscv_cpu_debug_excp_handler() local 847 CPURISCVState *env = &cpu->env; in riscv_cpu_debug_check_breakpoint() local 894 CPURISCVState *env = &cpu->env; in riscv_cpu_debug_check_watchpoint() local 950 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() 97 void helper_csrw_i128(CPURISCVState *env, int csr, in helper_csrw_i128() 201 static void check_zicbom_access(CPURISCVState *env, in check_zicbom_access() 262 target_ulong helper_sret(CPURISCVState *env) in helper_sret() 315 target_ulong helper_mret(CPURISCVState *env) in helper_mret() 356 void helper_wfi(CPURISCVState *env) in helper_wfi() 376 void helper_wrs_nto(CPURISCVState *env) in helper_wrs_nto() 387 void helper_tlb_flush(CPURISCVState *env) in helper_tlb_flush() 402 void helper_tlb_flush_all(CPURISCVState *env) in helper_tlb_flush_all() 408 void helper_hyp_tlb_flush(CPURISCVState *env) in helper_hyp_tlb_flush() [all …]
|
/openbmc/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 …]
|
H A D | x86_decode.c | 29 static void decode_invalid(CPUX86State *env, struct x86_decode *decode) in decode_invalid() 118 static void decode_rax(CPUX86State *env, struct x86_decode *decode, in decode_rax() 151 static void decode_imm8(CPUX86State *env, struct x86_decode *decode, in decode_imm8() 166 static void decode_imm16(CPUX86State *env, struct x86_decode *decode, in decode_imm16() 174 static void decode_imm(CPUX86State *env, struct x86_decode *decode, in decode_imm() 194 static void decode_imm_1(CPUX86State *env, struct x86_decode *decode, in decode_imm_1() 201 static void decode_imm_0(CPUX86State *env, struct x86_decode *decode, in decode_imm_0() 304 static void decode_jxx(CPUX86State *env, struct x86_decode *decode) in decode_jxx() 411 static void decode_rcx(CPUX86State *env, struct x86_decode *decode, in decode_rcx() 593 static void decode_decode_x87_modrm_st0(CPUX86State *env, in decode_decode_x87_modrm_st0() [all …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/qemu/target/arm/ |
H A D | helper.c | 1442 void pmu_op_start(CPUARMState *env) in pmu_op_start() 1451 void pmu_op_finish(CPUARMState *env) in pmu_op_finish() 2680 CPUARMState *env = &cpu->env; in gt_update_irq() local 8716 CPUARMState *env = &cpu->env; in register_cp_regs_for_features() local 10012 CPUARMState *env = &cpu->env; in add_cpreg_to_hashtable() local 10770 CPUARMState *env = cpu_env(cs); in arm_phys_excp_target_el() local 11178 CPUARMState *env = &cpu->env; in arm_cpu_do_interrupt_aarch32_hyp() local 11257 CPUARMState *env = &cpu->env; in arm_cpu_do_interrupt_aarch32() local 11552 CPUARMState *env = &cpu->env; in arm_cpu_do_interrupt_aarch64() local 11786 CPUARMState *env = &cpu->env; in tcg_handle_semihosting() local [all …]
|
/openbmc/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 …]
|
/openbmc/qemu/target/mips/tcg/ |
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 …]
|
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 …]
|
/openbmc/linux/tools/perf/util/ |
H A D | env.c | 23 void perf_env__insert_bpf_prog_info(struct perf_env *env, in perf_env__insert_bpf_prog_info() 151 static void perf_env__purge_bpf(struct perf_env *env) in perf_env__purge_bpf() 195 void perf_env__exit(struct perf_env *env) in perf_env__exit() 246 void perf_env__init(struct perf_env *env) in perf_env__init() 269 int perf_env__kernel_is_64_bit(struct perf_env *env) in perf_env__kernel_is_64_bit() 370 int perf_env__read_cpuid(struct perf_env *env) in perf_env__read_cpuid() 385 static int perf_env__read_arch(struct perf_env *env) in perf_env__read_arch() 411 int perf_env__nr_cpus_avail(struct perf_env *env) in perf_env__nr_cpus_avail() 455 const char *perf_env__arch(struct perf_env *env) in perf_env__arch() 470 const char *perf_env__cpuid(struct perf_env *env) in perf_env__cpuid() [all …]
|
/openbmc/qemu/target/i386/tcg/ |
H A D | fpu_helper.c | 2380 CPUX86State *env = ac->env; in do_fstenv() local 2453 CPUX86State *env = ac->env; in do_fldenv() local 2476 CPUX86State *env = ac->env; in do_fsave() local 2501 CPUX86State *env = ac->env; in do_frstor() local 2526 CPUX86State *env = ac->env; in do_xsave_fpu() local 2557 CPUX86State *env = ac->env; in do_xsave_mxcsr() local 2566 CPUX86State *env = ac->env; in do_xsave_sse() local 2586 CPUX86State *env = ac->env; in do_xsave_ymmh() local 2603 CPUX86State *env = ac->env; in do_xsave_bndregs() local 2615 CPUX86State *env = ac->env; in do_xsave_bndcsr() local [all …]
|
/openbmc/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 …]
|