Home
last modified time | relevance | path

Searched refs:CPUPPCState (Results 1 – 25 of 71) sorted by relevance

123

/openbmc/qemu/target/ppc/
H A Dtimebase_helper.c30 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()
72 CPUPPCState *cenv = &POWERPC_CPU(ccs)->env; in helper_store_purr()
90 CPUPPCState *cenv = &POWERPC_CPU(ccs)->env; in helper_store_tbl()
121 target_ulong helper_load_decr(CPUPPCState *env) in helper_load_decr()
131 target_ulong helper_load_hdecr(CPUPPCState *env) in helper_load_hdecr()
[all …]
H A Dmisc_helper.c34 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()
58 CPUPPCState *cenv = &POWERPC_CPU(ccs)->env; in helper_spr_core_write_generic()
63 void helper_spr_write_CTRL(CPUPPCState *env, uint32_t sprn, in helper_spr_write_CTRL()
80 CPUPPCState *cenv = &POWERPC_CPU(ccs)->env; in helper_spr_write_CTRL()
205 CPUPPCState *cenv = &ccpu->env; in helper_store_ptcr()
240 target_ulong helper_load_dpdes(CPUPPCState *env) in helper_load_dpdes()
259 CPUPPCState *cenv = &ccpu->env; in helper_load_dpdes()
314 target_ulong helper_load_sprd(CPUPPCState *env) in helper_load_sprd()
423 void helper_fixup_thrm(CPUPPCState *env) in helper_fixup_thrm()
[all …]
H A Dpower8-pmu.c25 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()
364 void helper_handle_pmc5_overflow(CPUPPCState *env) in helper_handle_pmc5_overflow()
[all …]
H A Dhelper_regs.h23 void hreg_swap_gpr_tgpr(CPUPPCState *env);
24 void hreg_compute_hflags(CPUPPCState *env);
25 void hreg_update_pmu_hflags(CPUPPCState *env);
27 int hreg_store_msr(CPUPPCState *env, target_ulong value, int alter_hv);
30 static inline void check_tlb_flush(CPUPPCState *env, bool global) { } in check_tlb_flush()
32 void check_tlb_flush(CPUPPCState *env, bool global);
H A Dcpu.c30 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()
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 Dfpu_helper.c48 static inline bool fp_exceptions_enabled(CPUPPCState *env) in fp_exceptions_enabled()
307 static inline int float_overflow_excp(CPUPPCState *env) in float_overflow_excp()
439 void helper_fpscr_check_status(CPUPPCState *env) in helper_fpscr_check_status()
473 void helper_float_check_status(CPUPPCState *env) in helper_float_check_status()
478 void helper_reset_fpstatus(CPUPPCState *env) in helper_reset_fpstatus()
596 static uint64_t do_fri(CPUPPCState *env, uint64_t arg, in do_fri()
618 uint64_t helper_frin(CPUPPCState *env, uint64_t arg) in helper_frin()
623 uint64_t helper_friz(CPUPPCState *env, uint64_t arg) in helper_friz()
628 uint64_t helper_frip(CPUPPCState *env, uint64_t arg) in helper_frip()
633 uint64_t helper_frim(CPUPPCState *env, uint64_t arg) in helper_frim()
[all …]
H A Dmmu_helper.c123 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 Dcpu.h298 typedef struct CPUArchState CPUPPCState; typedef
1363 int (*check_pow)(CPUPPCState *env);
1366 int (*check_attn)(CPUPPCState *env);
1445 CPUPPCState env;
1512 void (*init_proc)(CPUPPCState *env);
1513 int (*check_pow)(CPUPPCState *env);
1591 void ppc_update_ciabr(CPUPPCState *env);
1593 void ppc_update_daw0(CPUPPCState *env);
2993 CPUPPCState *env = &cpu->env; in ppc_interrupts_little_endian()
3013 void dump_mmu(CPUPPCState *env);
[all …]
H A Dpower8-pmu.h27 void cpu_ppc_pmu_init(CPUPPCState *env);
28 void pmu_mmcr01a_updated(CPUPPCState *env);
30 static inline void cpu_ppc_pmu_init(CPUPPCState *env) { } in cpu_ppc_pmu_init()
31 static inline void pmu_mmcr01a_updated(CPUPPCState *env) { } in pmu_mmcr01a_updated()
H A Dmem_helper.c32 static inline bool needs_byteswap(const CPUPPCState *env) in needs_byteswap()
83 void helper_lmw(CPUPPCState *env, target_ulong addr, uint32_t reg) in helper_lmw()
105 void helper_stmw(CPUPPCState *env, target_ulong addr, uint32_t reg) in helper_stmw()
187 void helper_lsw(CPUPPCState *env, target_ulong addr, in helper_lsw()
215 void helper_stsw(CPUPPCState *env, target_ulong addr, uint32_t nb, in helper_stsw()
273 static void dcbz_common(CPUPPCState *env, target_ulong addr, in dcbz_common()
312 void helper_dcbzl(CPUPPCState *env, target_ulong addr) in helper_dcbzl()
328 void helper_icbi(CPUPPCState *env, target_ulong addr) in helper_icbi()
340 void helper_icbiep(CPUPPCState *env, target_ulong addr) in helper_icbiep()
395 void helper_##name(CPUPPCState *env, ppc_avr_t *r, \
[all …]
H A Dexcp_helper.c294 CPUPPCState *env = &cpu->env; in ppc_excp_apply_ail()
391 CPUPPCState *env = &cpu->env; in powerpc_reset_excp_state()
401 CPUPPCState *env = &cpu->env; in powerpc_set_excp_state()
457 void helper_attn(CPUPPCState *env) in helper_attn()
484 CPUPPCState *env = &cpu->env; in powerpc_excp_40x()
592 CPUPPCState *env = &cpu->env; in powerpc_excp_6xx()
735 CPUPPCState *env = &cpu->env; in powerpc_excp_7xx()
885 CPUPPCState *env = &cpu->env; in powerpc_excp_74xx()
1029 CPUPPCState *env = &cpu->env; in powerpc_excp_booke()
1263 CPUPPCState *env = &cpu->env; in is_prefix_insn_excp()
[all …]
H A Dmmu-booke.h6 int ppcemb_tlb_search(CPUPPCState *env, target_ulong address, uint32_t pid);
7 int mmu40x_get_physical_address(CPUPPCState *env, hwaddr *raddr, int *prot,
10 hwaddr booke206_tlb_to_page_size(CPUPPCState *env, ppcmas_tlb_t *tlb);
11 int ppcmas_tlb_check(CPUPPCState *env, ppcmas_tlb_t *tlb, hwaddr *raddrp,
H A Dgdbstub.c111 CPUPPCState *env = cpu_env(cs); in ppc_cpu_gdb_read_register()
154 CPUPPCState *env = cpu_env(cs); in ppc_cpu_gdb_read_register_apple()
303 CPUPPCState *env = &cpu->env; in gdb_gen_spr_feature()
369 CPUPPCState *env = &cpu->env; in gdb_get_spr_reg()
412 CPUPPCState *env = &cpu->env; in gdb_set_spr_reg()
443 CPUPPCState *env = &cpu->env; in gdb_get_float_reg()
463 CPUPPCState *env = &cpu->env; in gdb_set_float_reg()
481 CPUPPCState *env = &cpu->env; in gdb_get_avr_reg()
509 CPUPPCState *env = &cpu->env; in gdb_set_avr_reg()
534 CPUPPCState *env = &cpu->env; in gdb_get_spe_reg()
[all …]
H A Dhelper_regs.c32 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()
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 Dmmu-hash64.c55 CPUPPCState *env = &cpu->env; in slb_lookup()
87 CPUPPCState *env = &cpu->env; in dump_slb()
243 CPUPPCState *env = &cpu->env; in ppc_store_slb()
296 CPUPPCState *env = &cpu->env; in ppc_load_slb_esid()
311 CPUPPCState *env = &cpu->env; in ppc_load_slb_vsid()
326 CPUPPCState *env = &cpu->env; in ppc_find_slb_vsid()
448 CPUPPCState *env = &cpu->env; in ppc_hash64_iamr_prot()
464 CPUPPCState *env = &cpu->env; in ppc_hash64_amr_prot()
711 CPUPPCState *env = &cpu->env; in ppc_hash64_htab_lookup()
896 CPUPPCState *env = &cpu->env; in rmls_limit()
[all …]
H A Dppc-qmp-cmds.c95 { "fpscr", offsetof(CPUPPCState, fpscr) },
97 { "nip|pc", offsetof(CPUPPCState, nip) },
98 { "lr", offsetof(CPUPPCState, lr) },
99 { "ctr", offsetof(CPUPPCState, ctr) },
104 { "msr", offsetof(CPUPPCState, msr) },
140 CPUPPCState *env = cpu_env(cs); in target_get_monitor_def()
H A Dmmu-booke.c28 static bool ppcemb_tlb_check(CPUPPCState *env, ppcemb_tlb_t *tlb, in ppcemb_tlb_check()
56 int ppcemb_tlb_search(CPUPPCState *env, target_ulong address, uint32_t pid) in ppcemb_tlb_search()
71 int mmu40x_get_physical_address(CPUPPCState *env, hwaddr *raddr, int *prot, in mmu40x_get_physical_address()
134 static bool mmubooke_check_pid(CPUPPCState *env, ppcemb_tlb_t *tlb, in mmubooke_check_pid()
157 static int mmubooke_check_tlb(CPUPPCState *env, ppcemb_tlb_t *tlb, in mmubooke_check_tlb()
188 static int mmubooke_get_physical_address(CPUPPCState *env, hwaddr *raddr, in mmubooke_get_physical_address()
210 hwaddr booke206_tlb_to_page_size(CPUPPCState *env, ppcmas_tlb_t *tlb) in booke206_tlb_to_page_size()
220 int ppcmas_tlb_check(CPUPPCState *env, ppcmas_tlb_t *tlb, hwaddr *raddrp, in ppcmas_tlb_check()
286 static bool mmubooke206_get_as(CPUPPCState *env, in mmubooke206_get_as()
309 static int mmubooke206_check_tlb(CPUPPCState *env, ppcmas_tlb_t *tlb, in mmubooke206_check_tlb()
[all …]
H A Dcpu_init.c65 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()
6785 CPUPPCState *env = &cpu->env; in cpu_ppc_set_1lpar()
6805 CPUPPCState *env = &cpu->env; in init_ppc_proc()
6948 CPUPPCState *env = &cpu->env; in ppc_cpu_realize()
7259 CPUPPCState *env = &cpu->env; in ppc_cpu_reset_hold()
7389 CPUPPCState *env = &cpu->env; in ppc_cpu_instance_init()
7434 CPUPPCState *env = cpu_env(cs); in ppc_disas_set_info()
[all …]
H A Ddfp_helper.c63 CPUPPCState *env;
148 ppc_fprp_t *b, CPUPPCState *env) in dfp_prepare_decimal64()
172 ppc_fprp_t *b, CPUPPCState *env) in dfp_prepare_decimal128()
891 void helper_DCTDP(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *b) in helper_DCTDP()
907 void helper_DCTQPQ(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *b) in helper_DCTQPQ()
922 void helper_DRSP(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *b) in helper_DRSP()
940 void helper_DRDPQ(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *b) in helper_DRDPQ()
981 void helper_DCFFIXQQ(CPUPPCState *env, ppc_fprp_t *t, ppc_avr_t *b) in helper_DCFFIXQQ()
1031 void helper_DCTFIXQQ(CPUPPCState *env, ppc_avr_t *t, ppc_fprp_t *b) in helper_DCTFIXQQ()
1231 void helper_##op(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *b) \
[all …]
/openbmc/qemu/hw/ppc/
H A Dppc.c46 CPUPPCState *env = &cpu->env; in ppc_set_irq()
75 CPUPPCState *env = &cpu->env; in ppc6xx_set_irq()
155 CPUPPCState *env = &cpu->env; in ppc970_set_irq()
282 CPUPPCState *env = &cpu->env; in ppc40x_core_reset()
295 CPUPPCState *env = &cpu->env; in ppc40x_chip_reset()
344 CPUPPCState *env = &cpu->env; in ppc40x_set_irq()
419 CPUPPCState *env = &cpu->env; in ppce500_set_irq()
820 CPUPPCState *env = &cpu->env; in cpu_ppc_hdecr_excp()
846 CPUPPCState *env = &cpu->env; in __cpu_ppc_store_decr()
1185 CPUPPCState *env = &cpu->env; in cpu_4xx_fit_cb()
[all …]
H A Dppc440.h16 void ppc4xx_l2sram_init(CPUPPCState *env);
17 void ppc4xx_cpr_init(CPUPPCState *env);
18 void ppc4xx_sdr_init(CPUPPCState *env);
19 void ppc4xx_ahb_init(CPUPPCState *env);
20 void ppc4xx_dma_init(CPUPPCState *env, int dcr_base);
H A Dppc_booke.c78 CPUPPCState *env = &cpu->env; in booke_update_irq()
95 static uint8_t booke_get_fit_target(CPUPPCState *env, ppc_tb_t *tb_env) in booke_get_fit_target()
113 static uint8_t booke_get_wdt_target(CPUPPCState *env, ppc_tb_t *tb_env) in booke_get_wdt_target()
129 static void booke_update_fixed_timer(CPUPPCState *env, in booke_update_fixed_timer()
193 CPUPPCState *env = &cpu->env; in booke_decr_cb()
211 CPUPPCState *env = &cpu->env; in booke_fit_cb()
231 CPUPPCState *env = &cpu->env; in booke_wdt_cb()
249 void store_booke_tsr(CPUPPCState *env, target_ulong val) in store_booke_tsr()
277 void store_booke_tcr(CPUPPCState *env, target_ulong val) in store_booke_tcr()
304 CPUPPCState *env = &cpu->env; in ppc_booke_timer_reset_handle()
[all …]
/openbmc/qemu/include/hw/ppc/
H A Dppc.h57 void cpu_ppc_tb_init(CPUPPCState *env, uint32_t freq);
58 void cpu_ppc_tb_reset(CPUPPCState *env);
59 void cpu_ppc_tb_free(CPUPPCState *env);
60 void cpu_ppc_hdecr_init(CPUPPCState *env);
61 void cpu_ppc_hdecr_exit(CPUPPCState *env);
66 int ppc_dcr_init (CPUPPCState *env, int (*dcr_read_error)(int dcrn),
68 int ppc_dcr_register (CPUPPCState *env, int dcrn, void *opaque,
70 clk_setup_cb ppc_40x_timers_init (CPUPPCState *env, uint32_t freq,
/openbmc/qemu/linux-user/ppc/
H A Dtarget_cpu.h22 static inline void cpu_clone_regs_child(CPUPPCState *env, target_ulong newsp, in cpu_clone_regs_child()
31 static inline void cpu_clone_regs_parent(CPUPPCState *env, unsigned flags) in cpu_clone_regs_parent()
35 static inline void cpu_set_tls(CPUPPCState *env, target_ulong newtls) in cpu_set_tls()
55 static inline abi_ulong get_sp_from_cpustate(CPUPPCState *state) in get_sp_from_cpustate()
H A Dcpu_loop.c27 static inline uint64_t cpu_ppc_get_tb(CPUPPCState *env) in cpu_ppc_get_tb()
32 uint64_t cpu_ppc_load_tbl(CPUPPCState *env) in cpu_ppc_load_tbl()
37 uint32_t cpu_ppc_load_tbu(CPUPPCState *env) in cpu_ppc_load_tbu()
42 uint64_t cpu_ppc_load_atbl(CPUPPCState *env) in cpu_ppc_load_atbl()
47 uint32_t cpu_ppc_load_atbu(CPUPPCState *env) in cpu_ppc_load_atbu()
52 uint64_t cpu_ppc_load_vtb(CPUPPCState *env) in cpu_ppc_load_vtb()
68 void cpu_loop(CPUPPCState *env) in cpu_loop()

123