Home
last modified time | relevance | path

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

123

/openbmc/qemu/target/ppc/
H A Dtimebase_helper.c29 target_ulong helper_load_tbl(CPUPPCState *env) in helper_load_tbl()
34 target_ulong helper_load_tbu(CPUPPCState *env) in helper_load_tbu()
39 target_ulong helper_load_atbl(CPUPPCState *env) in helper_load_atbl()
44 target_ulong helper_load_atbu(CPUPPCState *env) in helper_load_atbu()
49 target_ulong helper_load_vtb(CPUPPCState *env) in helper_load_vtb()
55 target_ulong helper_load_purr(CPUPPCState *env) in helper_load_purr()
60 void helper_store_purr(CPUPPCState *env, target_ulong val) in helper_store_purr()
71 CPUPPCState *cenv = &POWERPC_CPU(ccs)->env; in helper_store_purr()
78 void helper_store_tbl(CPUPPCState *env, target_ulong val) in helper_store_tbl()
89 CPUPPCState *cenv = &POWERPC_CPU(ccs)->env; in helper_store_tbl()
[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()
46 void helper_spr_core_write_generic(CPUPPCState *env, uint32_t sprn, in helper_spr_core_write_generic()
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()
89 static void raise_hv_fu_exception(CPUPPCState *env, uint32_t bit, in raise_hv_fu_exception()
101 static void raise_fu_exception(CPUPPCState *env, uint32_t bit, in raise_fu_exception()
115 void helper_hfscr_facility_check(CPUPPCState *env, uint32_t bit, in helper_hfscr_facility_check()
126 void helper_fscr_facility_check(CPUPPCState *env, uint32_t bit, in helper_fscr_facility_check()
[all …]
H A Dhelper_regs.h25 void hreg_swap_gpr_tgpr(CPUPPCState *env);
26 void hreg_compute_hflags(CPUPPCState *env);
27 void hreg_update_pmu_hflags(CPUPPCState *env);
29 int hreg_store_msr(CPUPPCState *env, target_ulong value, int alter_hv);
32 static inline void check_tlb_flush(CPUPPCState *env, bool global) { } in check_tlb_flush()
34 void check_tlb_flush(CPUPPCState *env, bool global);
H A Dcpu.c31 target_ulong cpu_read_xer(const CPUPPCState *env) in cpu_read_xer()
43 void cpu_write_xer(CPUPPCState *env, target_ulong xer) in cpu_write_xer()
56 void ppc_store_vscr(CPUPPCState *env, uint32_t vscr) in ppc_store_vscr()
66 uint32_t ppc_get_vscr(CPUPPCState *env) in ppc_get_vscr()
72 void ppc_set_cr(CPUPPCState *env, uint64_t cr) in ppc_set_cr()
80 uint64_t ppc_get_cr(const CPUPPCState *env) in ppc_get_cr()
90 void ppc_store_msr(CPUPPCState *env, target_ulong value) in ppc_store_msr()
99 CPUPPCState *env = &cpu->env; in ppc_store_lpcr()
109 void ppc_update_ciabr(CPUPPCState *env) in ppc_update_ciabr()
128 void ppc_store_ciabr(CPUPPCState *env, target_ulong val) in ppc_store_ciabr()
[all …]
H A Dpower8-pmu.c24 static bool pmc_has_overflow_enabled(CPUPPCState *env, int sprn) in pmc_has_overflow_enabled()
37 static void pmu_update_summaries(CPUPPCState *env) in pmu_update_summaries()
84 static void hreg_bhrb_filter_update(CPUPPCState *env) in hreg_bhrb_filter_update()
115 void pmu_mmcr01a_updated(CPUPPCState *env) in pmu_mmcr01a_updated()
136 static bool pmu_increment_insns(CPUPPCState *env, uint32_t num_insns) in pmu_increment_insns()
200 static void pmu_update_cycles(CPUPPCState *env) in pmu_update_cycles()
224 static QEMUTimer *get_cyc_overflow_timer(CPUPPCState *env, int sprn) in get_cyc_overflow_timer()
229 static void pmc_update_overflow_timer(CPUPPCState *env, int sprn) in pmc_update_overflow_timer()
262 static void pmu_update_overflow_timers(CPUPPCState *env) in pmu_update_overflow_timers()
275 static void pmu_delete_timers(CPUPPCState *env) in pmu_delete_timers()
[all …]
H A Dtcg-excp_helper.c36 void raise_exception_err_ra(CPUPPCState *env, uint32_t exception, in raise_exception_err_ra()
46 void helper_raise_exception_err(CPUPPCState *env, uint32_t exception, in helper_raise_exception_err()
52 void helper_raise_exception(CPUPPCState *env, uint32_t exception) in helper_raise_exception()
59 static G_NORETURN void raise_exception_err(CPUPPCState *env, uint32_t exception, in raise_exception_err()
65 static G_NORETURN void raise_exception(CPUPPCState *env, uint32_t exception) in raise_exception()
72 void helper_TW(CPUPPCState *env, target_ulong arg1, target_ulong arg2, in helper_TW()
86 void helper_TD(CPUPPCState *env, target_ulong arg1, target_ulong arg2, in helper_TD()
159 static void do_hash(CPUPPCState *env, target_ulong ea, target_ulong ra, in do_hash()
179 void helper_##op(CPUPPCState *env, target_ulong ea, target_ulong ra, \
199 void helper_##op(CPUPPCState *env, target_ulong ea, target_ulong ra, \
[all …]
H A Dfpu_helper.c47 static inline bool fp_exceptions_enabled(CPUPPCState *env) in fp_exceptions_enabled()
144 void helper_compute_fprf_##tp(CPUPPCState *env, tp arg) \
172 static void finish_invalid_op_excp(CPUPPCState *env, int op, uintptr_t retaddr) in COMPUTE_FPRF()
188 static void finish_invalid_op_arith(CPUPPCState *env, int op, in finish_invalid_op_arith()
202 static void float_invalid_op_vxsnan(CPUPPCState *env, uintptr_t retaddr) in float_invalid_op_vxsnan()
209 static void float_invalid_op_vxisi(CPUPPCState *env, bool set_fpcc, in float_invalid_op_vxisi()
217 static void float_invalid_op_vxidi(CPUPPCState *env, bool set_fpcc, in float_invalid_op_vxidi()
225 static void float_invalid_op_vxzdz(CPUPPCState *env, bool set_fpcc, in float_invalid_op_vxzdz()
233 static void float_invalid_op_vximz(CPUPPCState *env, bool set_fpcc, in float_invalid_op_vximz()
241 static void float_invalid_op_vxsqrt(CPUPPCState *env, bool set_fpcc, in float_invalid_op_vxsqrt()
[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 Dmmu_helper.c47 static inline void ppc6xx_tlb_invalidate_all(CPUPPCState *env) in ppc6xx_tlb_invalidate_all()
59 static inline void ppc6xx_tlb_invalidate_virt2(CPUPPCState *env, in ppc6xx_tlb_invalidate_virt2()
85 static inline void ppc6xx_tlb_invalidate_virt(CPUPPCState *env, in ppc6xx_tlb_invalidate_virt()
91 static void ppc6xx_tlb_store(CPUPPCState *env, target_ulong EPN, int way, in ppc6xx_tlb_store()
112 static inline void ppc4xx_tlb_invalidate_all(CPUPPCState *env) in ppc4xx_tlb_invalidate_all()
124 static void booke206_flush_tlb(CPUPPCState *env, int flags, in booke206_flush_tlb()
149 static inline void do_invalidate_BAT(CPUPPCState *env, target_ulong BATu, in do_invalidate_BAT()
174 static inline void dump_store_bat(CPUPPCState *env, char ID, int ul, int nr, in dump_store_bat()
182 void helper_store_ibatu(CPUPPCState *env, uint32_t nr, target_ulong value) in helper_store_ibatu()
209 void helper_store_ibatl(CPUPPCState *env, uint32_t nr, target_ulong value) in helper_store_ibatl()
[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 Dcpu.h302 typedef struct CPUArchState CPUPPCState; typedef
1380 int (*check_pow)(CPUPPCState *env);
1383 int (*check_attn)(CPUPPCState *env);
1464 CPUPPCState env;
1522 void (*init_proc)(CPUPPCState *env);
1523 int (*check_pow)(CPUPPCState *env);
1524 int (*check_attn)(CPUPPCState *env);
1527 uint64_t (*load_sprd)(CPUPPCState *env);
1528 void (*store_sprd)(CPUPPCState *env, uint64_t val);
1591 void ppc_maybe_interrupt(CPUPPCState *env);
[all …]
H A Dmem_helper.c34 static inline bool needs_byteswap(const CPUPPCState *env) in needs_byteswap()
46 static inline target_ulong addr_add(CPUPPCState *env, target_ulong addr, in addr_add()
59 static void *probe_contiguous(CPUPPCState *env, target_ulong addr, uint32_t nb, in probe_contiguous()
85 void helper_lmw(CPUPPCState *env, target_ulong addr, uint32_t reg) in helper_lmw()
107 void helper_stmw(CPUPPCState *env, target_ulong addr, uint32_t reg) in helper_stmw()
129 static void do_lsw(CPUPPCState *env, target_ulong addr, uint32_t nb, in do_lsw()
189 void helper_lsw(CPUPPCState *env, target_ulong addr, in helper_lsw()
201 void helper_lswx(CPUPPCState *env, target_ulong addr, uint32_t reg, in helper_lswx()
217 void helper_stsw(CPUPPCState *env, target_ulong addr, uint32_t nb, in helper_stsw()
275 static void dcbz_common(CPUPPCState *env, target_ulong addr, in dcbz_common()
[all …]
H A Dgdbstub.c84 void ppc_maybe_bswap_register(CPUPPCState *env, uint8_t *mem_buf, int len) in ppc_maybe_bswap_register()
111 CPUPPCState *env = cpu_env(cs); in ppc_cpu_gdb_read_register()
154 CPUPPCState *env = cpu_env(cs); in ppc_cpu_gdb_read_register_apple()
207 CPUPPCState *env = cpu_env(cs); in ppc_cpu_gdb_write_register()
253 CPUPPCState *env = cpu_env(cs); in ppc_cpu_gdb_write_register_apple()
303 CPUPPCState *env = &cpu->env; in gdb_gen_spr_feature()
352 static int gdb_find_spr_idx(CPUPPCState *env, int n) in gdb_find_spr_idx()
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()
[all …]
H A Dhelper_regs.c34 void hreg_swap_gpr_tgpr(CPUPPCState *env) in hreg_swap_gpr_tgpr()
53 static bool hreg_check_bhrb_enable(CPUPPCState *env) in hreg_check_bhrb_enable()
85 static uint32_t hreg_compute_pmu_hflags_value(CPUPPCState *env) in hreg_compute_pmu_hflags_value()
118 static uint32_t hreg_compute_pmu_hflags_mask(CPUPPCState *env) in hreg_compute_pmu_hflags_mask()
132 static uint32_t hreg_compute_hflags_value(CPUPPCState *env) in hreg_compute_hflags_value()
244 void hreg_compute_hflags(CPUPPCState *env) in hreg_compute_hflags()
254 void hreg_update_pmu_hflags(CPUPPCState *env) in hreg_update_pmu_hflags()
262 CPUPPCState *env = cpu_env(cs); in ppc_get_tb_cpu_state()
289 int hreg_store_msr(CPUPPCState *env, target_ulong value, int alter_hv) in hreg_store_msr()
356 void store_40x_sler(CPUPPCState *env, uint32_t val) in store_40x_sler()
[all …]
H A Dmmu-hash64.c55 CPUPPCState *env = &cpu->env; in slb_lookup()
87 CPUPPCState *env = &cpu->env; in dump_slb()
106 void helper_SLBIA(CPUPPCState *env, uint32_t ih) in helper_SLBIA()
179 void helper_SLBIAG(CPUPPCState *env, target_ulong rs, uint32_t l) in helper_SLBIAG()
205 static void __helper_slbie(CPUPPCState *env, target_ulong addr, in __helper_slbie()
229 void helper_SLBIE(CPUPPCState *env, target_ulong addr) in helper_SLBIE()
234 void helper_SLBIEG(CPUPPCState *env, target_ulong addr) in helper_SLBIEG()
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()
[all …]
H A Dppc-qmp-cmds.c96 { "fpscr", offsetof(CPUPPCState, fpscr) },
98 { "nip|pc", offsetof(CPUPPCState, nip) },
99 { "lr", offsetof(CPUPPCState, lr) },
100 { "ctr", offsetof(CPUPPCState, ctr) },
105 { "msr", offsetof(CPUPPCState, msr) },
141 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.c58 static inline void vscr_init(CPUPPCState *env, uint32_t val) in vscr_init()
65 static void register_745_sprs(CPUPPCState *env) in register_745_sprs()
102 static void register_755_sprs(CPUPPCState *env) in register_755_sprs()
117 static void register_7xx_sprs(CPUPPCState *env) in register_7xx_sprs()
223 static void register_amr_sprs(CPUPPCState *env) in register_amr_sprs()
255 static void register_iamr_sprs(CPUPPCState *env) in register_iamr_sprs()
268 static void register_604_sprs(CPUPPCState *env) in register_604_sprs()
323 static void register_604e_sprs(CPUPPCState *env) in register_604e_sprs()
347 static void register_603_sprs(CPUPPCState *env) in register_603_sprs()
371 static void register_e300_sprs(CPUPPCState *env) in register_e300_sprs()
[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()
430 void helper_##op(CPUPPCState *env, ppc_fprp_t *t, ppc_fprp_t *a, \
496 uint32_t helper_##op(CPUPPCState *env, ppc_fprp_t *a, ppc_fprp_t *b) \
528 uint32_t helper_##op(CPUPPCState *env, ppc_fprp_t *a, uint32_t dcm) \
556 uint32_t helper_##op(CPUPPCState *env, ppc_fprp_t *a, uint32_t dcm) \
611 uint32_t helper_##op(CPUPPCState *env, ppc_fprp_t *a, ppc_fprp_t *b) \
643 uint32_t helper_##op(CPUPPCState *env, ppc_fprp_t *a, ppc_fprp_t *b) \
680 uint32_t helper_##op(CPUPPCState *env, uint32_t a, ppc_fprp_t *b) \
[all …]
/openbmc/qemu/hw/ppc/
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.c42 static void cpu_ppc_tb_stop (CPUPPCState *env);
43 static void cpu_ppc_tb_start (CPUPPCState *env);
47 CPUPPCState *env = &cpu->env; in ppc_set_irq()
76 CPUPPCState *env = &cpu->env; in ppc6xx_set_irq()
156 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()
313 void store_40x_dbcr0(CPUPPCState *env, uint32_t val) in store_40x_dbcr0()
344 CPUPPCState *env = &cpu->env; in ppc40x_set_irq()
419 CPUPPCState *env = &cpu->env; in ppce500_set_irq()
[all …]
H A Dppc_booke.c89 CPUPPCState *env = &cpu->env; in booke_update_irq()
106 static uint8_t booke_get_fit_target(CPUPPCState *env, ppc_tb_t *tb_env) in booke_get_fit_target()
124 static uint8_t booke_get_wdt_target(CPUPPCState *env, ppc_tb_t *tb_env) in booke_get_wdt_target()
140 static void booke_update_fixed_timer(CPUPPCState *env, in booke_update_fixed_timer()
204 CPUPPCState *env = &cpu->env; in booke_decr_cb()
222 CPUPPCState *env = &cpu->env; in booke_fit_cb()
242 CPUPPCState *env = &cpu->env; in booke_wdt_cb()
260 void store_booke_tsr(CPUPPCState *env, target_ulong val) in store_booke_tsr()
288 void store_booke_tcr(CPUPPCState *env, target_ulong val) in store_booke_tcr()
315 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