/openbmc/qemu/target/ppc/ |
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() 61 void helper_store_purr(CPUPPCState *env, target_ulong val) in helper_store_purr() 72 CPUPPCState *cenv = &POWERPC_CPU(ccs)->env; in helper_store_purr() 79 void helper_store_tbl(CPUPPCState *env, target_ulong val) in helper_store_tbl() 90 CPUPPCState *cenv = &POWERPC_CPU(ccs)->env; in helper_store_tbl() [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() 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 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() 137 static bool pmu_increment_insns(CPUPPCState *env, uint32_t num_insns) in pmu_increment_insns() 201 static void pmu_update_cycles(CPUPPCState *env) in pmu_update_cycles() 225 static QEMUTimer *get_cyc_overflow_timer(CPUPPCState *env, int sprn) in get_cyc_overflow_timer() 230 static void pmc_update_overflow_timer(CPUPPCState *env, int sprn) in pmc_update_overflow_timer() 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() [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() 108 void ppc_update_ciabr(CPUPPCState *env) in ppc_update_ciabr() 127 void ppc_store_ciabr(CPUPPCState *env, target_ulong val) in ppc_store_ciabr() [all …]
|
H A D | fpu_helper.c | 48 static inline bool fp_exceptions_enabled(CPUPPCState *env) in fp_exceptions_enabled() 145 void helper_compute_fprf_##tp(CPUPPCState *env, tp arg) \ 174 static void finish_invalid_op_excp(CPUPPCState *env, int op, uintptr_t retaddr) in COMPUTE_FPRF() 190 static void finish_invalid_op_arith(CPUPPCState *env, int op, in finish_invalid_op_arith() 204 static void float_invalid_op_vxsnan(CPUPPCState *env, uintptr_t retaddr) in float_invalid_op_vxsnan() 211 static void float_invalid_op_vxisi(CPUPPCState *env, bool set_fpcc, in float_invalid_op_vxisi() 219 static void float_invalid_op_vxidi(CPUPPCState *env, bool set_fpcc, in float_invalid_op_vxidi() 227 static void float_invalid_op_vxzdz(CPUPPCState *env, bool set_fpcc, in float_invalid_op_vxzdz() 235 static void float_invalid_op_vximz(CPUPPCState *env, bool set_fpcc, in float_invalid_op_vximz() 243 static void float_invalid_op_vxsqrt(CPUPPCState *env, bool set_fpcc, in float_invalid_op_vxsqrt() [all …]
|
H A D | helper_regs.h | 23 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 D | mmu_helper.c | 46 static inline void ppc6xx_tlb_invalidate_all(CPUPPCState *env) in ppc6xx_tlb_invalidate_all() 58 static inline void ppc6xx_tlb_invalidate_virt2(CPUPPCState *env, in ppc6xx_tlb_invalidate_virt2() 84 static inline void ppc6xx_tlb_invalidate_virt(CPUPPCState *env, in ppc6xx_tlb_invalidate_virt() 90 static void ppc6xx_tlb_store(CPUPPCState *env, target_ulong EPN, int way, in ppc6xx_tlb_store() 111 static inline void ppc4xx_tlb_invalidate_all(CPUPPCState *env) in ppc4xx_tlb_invalidate_all() 123 static void booke206_flush_tlb(CPUPPCState *env, int flags, in booke206_flush_tlb() 148 static inline void do_invalidate_BAT(CPUPPCState *env, target_ulong BATu, in do_invalidate_BAT() 173 static inline void dump_store_bat(CPUPPCState *env, char ID, int ul, int nr, in dump_store_bat() 181 void helper_store_ibatu(CPUPPCState *env, uint32_t nr, target_ulong value) in helper_store_ibatu() 208 void helper_store_ibatl(CPUPPCState *env, uint32_t nr, target_ulong value) in helper_store_ibatl() [all …]
|
H A D | cpu.h | 300 typedef struct CPUArchState CPUPPCState; typedef 1367 int (*check_pow)(CPUPPCState *env); 1370 int (*check_attn)(CPUPPCState *env); 1451 CPUPPCState env; 1509 void (*init_proc)(CPUPPCState *env); 1510 int (*check_pow)(CPUPPCState *env); 1511 int (*check_attn)(CPUPPCState *env); 1574 void ppc_maybe_interrupt(CPUPPCState *env); 1586 void ppc_store_sdr1(CPUPPCState *env, target_ulong value); 1588 void ppc_update_ciabr(CPUPPCState *env); [all …]
|
H A D | mem_helper.c | 32 static inline bool needs_byteswap(const CPUPPCState *env) in needs_byteswap() 44 static inline target_ulong addr_add(CPUPPCState *env, target_ulong addr, in addr_add() 57 static void *probe_contiguous(CPUPPCState *env, target_ulong addr, uint32_t nb, in probe_contiguous() 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() 127 static void do_lsw(CPUPPCState *env, target_ulong addr, uint32_t nb, in do_lsw() 187 void helper_lsw(CPUPPCState *env, target_ulong addr, in helper_lsw() 199 void helper_lswx(CPUPPCState *env, target_ulong addr, uint32_t reg, in helper_lswx() 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() [all …]
|
H A D | excp_helper.c | 112 static void dump_syscall(CPUPPCState *env) in dump_syscall() 124 static void dump_hcall(CPUPPCState *env) in dump_hcall() 160 static void ppc_excp_debug_sw_tlb(CPUPPCState *env, int excp) in ppc_excp_debug_sw_tlb() 193 static int powerpc_reset_wakeup(CPUPPCState *env, int excp, target_ulong *msr) in powerpc_reset_wakeup() 294 CPUPPCState *env = &cpu->env; in ppc_excp_apply_ail() 385 CPUPPCState *env = &cpu->env; in powerpc_reset_excp_state() 395 CPUPPCState *env = &cpu->env; in powerpc_set_excp_state() 429 static G_NORETURN void powerpc_checkstop(CPUPPCState *env, const char *reason) in powerpc_checkstop() 451 void helper_attn(CPUPPCState *env) in helper_attn() 464 static void powerpc_mcheck_checkstop(CPUPPCState *env) in powerpc_mcheck_checkstop() [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() 83 static uint32_t hreg_compute_pmu_hflags_value(CPUPPCState *env) in hreg_compute_pmu_hflags_value() 116 static uint32_t hreg_compute_pmu_hflags_mask(CPUPPCState *env) in hreg_compute_pmu_hflags_mask() 130 static uint32_t hreg_compute_hflags_value(CPUPPCState *env) in hreg_compute_hflags_value() 242 void hreg_compute_hflags(CPUPPCState *env) in hreg_compute_hflags() 252 void hreg_update_pmu_hflags(CPUPPCState *env) in hreg_update_pmu_hflags() 259 void cpu_get_tb_cpu_state(CPUPPCState *env, vaddr *pc, in cpu_get_tb_cpu_state() 290 int hreg_store_msr(CPUPPCState *env, target_ulong value, int alter_hv) in hreg_store_msr() 357 void store_40x_sler(CPUPPCState *env, uint32_t val) in store_40x_sler() [all …]
|
H A D | gdbstub.c | 84 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 D | power8-pmu.h | 27 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 D | mmu-booke.h | 6 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 D | mmu-hash64.c | 55 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 D | mmu-booke.c | 28 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 D | cpu_init.c | 59 static inline void vscr_init(CPUPPCState *env, uint32_t val) in vscr_init() 66 static void register_745_sprs(CPUPPCState *env) in register_745_sprs() 103 static void register_755_sprs(CPUPPCState *env) in register_755_sprs() 118 static void register_7xx_sprs(CPUPPCState *env) in register_7xx_sprs() 224 static void register_amr_sprs(CPUPPCState *env) in register_amr_sprs() 256 static void register_iamr_sprs(CPUPPCState *env) in register_iamr_sprs() 269 static void register_604_sprs(CPUPPCState *env) in register_604_sprs() 324 static void register_604e_sprs(CPUPPCState *env) in register_604e_sprs() 348 static void register_603_sprs(CPUPPCState *env) in register_603_sprs() 372 static void register_e300_sprs(CPUPPCState *env) in register_e300_sprs() [all …]
|
H A D | ppc-qmp-cmds.c | 95 { "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 D | dfp_helper.c | 63 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 D | ppc.c | 41 static void cpu_ppc_tb_stop (CPUPPCState *env); 42 static void cpu_ppc_tb_start (CPUPPCState *env); 46 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() 281 CPUPPCState *env = &cpu->env; in ppc40x_core_reset() 294 CPUPPCState *env = &cpu->env; in ppc40x_chip_reset() 312 void store_40x_dbcr0(CPUPPCState *env, uint32_t val) in store_40x_dbcr0() 343 CPUPPCState *env = &cpu->env; in ppc40x_set_irq() 418 CPUPPCState *env = &cpu->env; in ppce500_set_irq() [all …]
|
H A D | ppc440.h | 16 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 D | ppc_booke.c | 88 CPUPPCState *env = &cpu->env; in booke_update_irq() 105 static uint8_t booke_get_fit_target(CPUPPCState *env, ppc_tb_t *tb_env) in booke_get_fit_target() 123 static uint8_t booke_get_wdt_target(CPUPPCState *env, ppc_tb_t *tb_env) in booke_get_wdt_target() 139 static void booke_update_fixed_timer(CPUPPCState *env, in booke_update_fixed_timer() 203 CPUPPCState *env = &cpu->env; in booke_decr_cb() 221 CPUPPCState *env = &cpu->env; in booke_fit_cb() 241 CPUPPCState *env = &cpu->env; in booke_wdt_cb() 259 void store_booke_tsr(CPUPPCState *env, target_ulong val) in store_booke_tsr() 287 void store_booke_tcr(CPUPPCState *env, target_ulong val) in store_booke_tcr() 314 CPUPPCState *env = &cpu->env; in ppc_booke_timer_reset_handle() [all …]
|
/openbmc/qemu/include/hw/ppc/ |
H A D | ppc.h | 57 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 D | target_cpu.h | 22 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 D | cpu_loop.c | 27 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()
|