/openbmc/qemu/target/ppc/ |
H A D | kvm_ppc.h | 28 int kvmppc_set_interrupt(PowerPCCPU *cpu, int irq, int level); 34 void kvmppc_set_papr(PowerPCCPU *cpu); 35 int kvmppc_set_compat(PowerPCCPU *cpu, uint32_t compat_pvr); 36 void kvmppc_set_mpic_proxy(PowerPCCPU *cpu, int mpic_proxy); 38 int kvmppc_set_fwnmi(PowerPCCPU *cpu); 42 int kvmppc_clear_tsr_bits(PowerPCCPU *cpu, uint32_t tsr_bits); 43 int kvmppc_or_tsr_bits(PowerPCCPU *cpu, uint32_t tsr_bits); 44 int kvmppc_set_tcr(PowerPCCPU *cpu); 45 int kvmppc_booke_watchdog_enable(PowerPCCPU *cpu); 46 target_ulong kvmppc_configure_v3_mmu(PowerPCCPU *cpu, [all …]
|
H A D | machine.c | 123 PowerPCCPU *cpu = opaque; in cpu_pre_save() 173 static bool pvr_match(PowerPCCPU *cpu, uint32_t pvr) in pvr_match() 185 PowerPCCPU *cpu = opaque; in cpu_post_load() 283 PowerPCCPU *cpu = opaque; in fpu_needed() 294 VMSTATE_FPR_ARRAY(env.vsr, PowerPCCPU, 32), 295 VMSTATE_UINTTL(env.fpscr, PowerPCCPU), 302 PowerPCCPU *cpu = opaque; in altivec_needed() 310 PowerPCCPU *cpu = opaque; in get_vscr() 318 PowerPCCPU *cpu = opaque; in put_vscr() 335 VMSTATE_AVR_ARRAY(env.vsr, PowerPCCPU, 32), [all …]
|
H A D | mmu-hash64.h | 7 void dump_slb(PowerPCCPU *cpu); 8 int ppc_store_slb(PowerPCCPU *cpu, target_ulong slot, 10 bool ppc_hash64_xlate(PowerPCCPU *cpu, vaddr eaddr, MMUAccessType access_type, 13 void ppc_hash64_tlb_flush_hpte(PowerPCCPU *cpu, 16 unsigned ppc_hash64_hpte_page_shift_noslb(PowerPCCPU *cpu, 18 void ppc_hash64_init(PowerPCCPU *cpu); 19 void ppc_hash64_finalize(PowerPCCPU *cpu); 119 const ppc_hash_pte64_t *ppc_hash64_map_hptes(PowerPCCPU *cpu, 121 void ppc_hash64_unmap_hptes(PowerPCCPU *cpu, const ppc_hash_pte64_t *hptes, 123 bool ppc_hash64_valid_ptex(PowerPCCPU *cpu, target_ulong ptex); [all …]
|
H A D | mmu-hash32.h | 6 bool ppc_hash32_xlate(PowerPCCPU *cpu, vaddr eaddr, MMUAccessType access_type, 62 static inline hwaddr ppc_hash32_hpt_base(PowerPCCPU *cpu) in ppc_hash32_hpt_base() 67 static inline hwaddr ppc_hash32_hpt_mask(PowerPCCPU *cpu) in ppc_hash32_hpt_mask() 72 static inline target_ulong ppc_hash32_load_hpte0(PowerPCCPU *cpu, in ppc_hash32_load_hpte0() 80 static inline target_ulong ppc_hash32_load_hpte1(PowerPCCPU *cpu, in ppc_hash32_load_hpte1() 88 static inline void ppc_hash32_store_hpte0(PowerPCCPU *cpu, in ppc_hash32_store_hpte0() 96 static inline void ppc_hash32_store_hpte1(PowerPCCPU *cpu, in ppc_hash32_store_hpte1() 104 static inline hwaddr get_pteg_offset32(PowerPCCPU *cpu, hwaddr hash) in get_pteg_offset32()
|
H A D | mmu-hash64.c | 53 static ppc_slb_t *slb_lookup(PowerPCCPU *cpu, target_ulong eaddr) in slb_lookup() 85 void dump_slb(PowerPCCPU *cpu) in dump_slb() 108 PowerPCCPU *cpu = env_archcpu(env); in helper_SLBIA() 181 PowerPCCPU *cpu = env_archcpu(env); in helper_SLBIAG() 208 PowerPCCPU *cpu = env_archcpu(env); in __helper_slbie() 240 int ppc_store_slb(PowerPCCPU *cpu, target_ulong slot, in ppc_store_slb() 293 static int ppc_load_slb_esid(PowerPCCPU *cpu, target_ulong rb, in ppc_load_slb_esid() 308 static int ppc_load_slb_vsid(PowerPCCPU *cpu, target_ulong rb, in ppc_load_slb_vsid() 323 static int ppc_find_slb_vsid(PowerPCCPU *cpu, target_ulong rb, in ppc_find_slb_vsid() 343 PowerPCCPU *cpu = env_archcpu(env); in helper_SLBMTE() [all …]
|
H A D | arch_dump.c | 104 static void ppc_write_elf_prstatus(NoteFuncArg *arg, PowerPCCPU *cpu, int id) in ppc_write_elf_prstatus() 136 static void ppc_write_elf_fpregset(NoteFuncArg *arg, PowerPCCPU *cpu, int id) in ppc_write_elf_fpregset() 155 static void ppc_write_elf_vmxregset(NoteFuncArg *arg, PowerPCCPU *cpu, int id) in ppc_write_elf_vmxregset() 187 static void ppc_write_elf_vsxregset(NoteFuncArg *arg, PowerPCCPU *cpu, int id) in ppc_write_elf_vsxregset() 204 static void ppc_write_elf_speregset(NoteFuncArg *arg, PowerPCCPU *cpu, int id) in ppc_write_elf_speregset() 220 void (*note_contents_func)(NoteFuncArg *arg, PowerPCCPU *cpu, int id); 235 PowerPCCPU *cpu; in cpu_get_dump_info() 278 PowerPCCPU *cpu, int id, in ppc_write_all_elf_notes() 306 PowerPCCPU *cpu = POWERPC_CPU(cs); in ppc64_cpu_write_elf64_note() 313 PowerPCCPU *cpu = POWERPC_CPU(cs); in ppc32_cpu_write_elf32_note()
|
H A D | mmu-book3s-v3.h | 65 static inline bool ppc64_use_proc_tbl(PowerPCCPU *cpu) in ppc64_use_proc_tbl() 70 bool ppc64_v3_get_pate(PowerPCCPU *cpu, target_ulong lpid, 78 static inline bool ppc64_v3_radix(PowerPCCPU *cpu) in ppc64_v3_radix()
|
H A D | gdbstub.c | 302 PowerPCCPU *cpu = POWERPC_CPU(cs); in gdb_gen_spr_feature() 368 PowerPCCPU *cpu = POWERPC_CPU(cs); in gdb_get_spr_reg() 411 PowerPCCPU *cpu = POWERPC_CPU(cs); in gdb_set_spr_reg() 442 PowerPCCPU *cpu = POWERPC_CPU(cs); in gdb_get_float_reg() 462 PowerPCCPU *cpu = POWERPC_CPU(cs); in gdb_set_float_reg() 480 PowerPCCPU *cpu = POWERPC_CPU(cs); in gdb_get_avr_reg() 508 PowerPCCPU *cpu = POWERPC_CPU(cs); in gdb_set_avr_reg() 533 PowerPCCPU *cpu = POWERPC_CPU(cs); in gdb_get_spe_reg() 560 PowerPCCPU *cpu = POWERPC_CPU(cs); in gdb_set_spe_reg() 592 PowerPCCPU *cpu = POWERPC_CPU(cs); in gdb_get_vsx_reg() [all …]
|
H A D | misc_helper.c | 176 PowerPCCPU *cpu = env_archcpu(env); in helper_store_ptcr() 204 PowerPCCPU *ccpu = POWERPC_CPU(ccs); in helper_store_ptcr() 215 PowerPCCPU *cpu = env_archcpu(env); in helper_store_pcr() 258 PowerPCCPU *ccpu = POWERPC_CPU(ccs); in helper_load_dpdes() 273 PowerPCCPU *cpu = env_archcpu(env); in helper_store_dpdes() 288 PowerPCCPU *ccpu = POWERPC_CPU(ccs); in helper_store_dpdes() 320 PowerPCCPU *cpu = env_archcpu(env); in helper_load_sprd() 356 PowerPCCPU *cpu = env_archcpu(env); in helper_store_sprd()
|
H A D | mmu-radix64.c | 115 static void ppc_radix64_raise_segi(PowerPCCPU *cpu, MMUAccessType access_type, in ppc_radix64_raise_segi() 144 static void ppc_radix64_raise_si(PowerPCCPU *cpu, MMUAccessType access_type, in ppc_radix64_raise_si() 175 static void ppc_radix64_raise_hsi(PowerPCCPU *cpu, MMUAccessType access_type, in ppc_radix64_raise_hsi() 222 static int ppc_radix64_get_prot_amr(const PowerPCCPU *cpu) in ppc_radix64_get_prot_amr() 233 static bool ppc_radix64_check_prot(PowerPCCPU *cpu, MMUAccessType access_type, in ppc_radix64_check_prot() 408 static bool validate_pate(PowerPCCPU *cpu, uint64_t lpid, ppc_v3_pate_t *pate) in validate_pate() 425 static int ppc_radix64_partition_scoped_xlate(PowerPCCPU *cpu, in ppc_radix64_partition_scoped_xlate() 503 static bool vhyp_flat_addressing(PowerPCCPU *cpu) in vhyp_flat_addressing() 511 static int ppc_radix64_process_scoped_xlate(PowerPCCPU *cpu, in ppc_radix64_process_scoped_xlate() 678 static bool ppc_radix64_xlate_impl(PowerPCCPU *cpu, vaddr eaddr, in ppc_radix64_xlate_impl() [all …]
|
H A D | tcg-stub.c | 24 void create_ppc_opcodes(PowerPCCPU *cpu, Error **errp) in create_ppc_opcodes() 28 void destroy_ppc_opcodes(PowerPCCPU *cpu) in destroy_ppc_opcodes()
|
H A D | mmu-hash32.c | 51 static hwaddr ppc_hash32_bat_lookup(PowerPCCPU *cpu, target_ulong ea, in ppc_hash32_bat_lookup() 113 static bool ppc_hash32_direct_store(PowerPCCPU *cpu, target_ulong sr, in ppc_hash32_direct_store() 204 static hwaddr ppc_hash32_pteg_search(PowerPCCPU *cpu, hwaddr pteg_off, in ppc_hash32_pteg_search() 236 static void ppc_hash32_set_r(PowerPCCPU *cpu, hwaddr pte_offset, uint32_t pte1) in ppc_hash32_set_r() 245 static void ppc_hash32_set_c(PowerPCCPU *cpu, hwaddr pte_offset, uint64_t pte1) in ppc_hash32_set_c() 254 static hwaddr ppc_hash32_htab_lookup(PowerPCCPU *cpu, in ppc_hash32_htab_lookup() 294 bool ppc_hash32_xlate(PowerPCCPU *cpu, vaddr eaddr, MMUAccessType access_type, in ppc_hash32_xlate()
|
/openbmc/qemu/include/hw/ppc/ |
H A D | ppc.h | 6 void ppc_set_irq(PowerPCCPU *cpu, int n_IRQ, int level); 7 PowerPCCPU *ppc_get_vcpu_by_pir(int pir); 8 int ppc_cpu_pir(PowerPCCPU *cpu); 9 int ppc_cpu_tir(PowerPCCPU *cpu); 74 void ppc40x_core_reset(PowerPCCPU *cpu); 75 void ppc40x_chip_reset(PowerPCCPU *cpu); 76 void ppc40x_system_reset(PowerPCCPU *cpu); 79 static inline void ppc40x_irq_init(PowerPCCPU *cpu) {} in ppc40x_irq_init() 80 static inline void ppc6xx_irq_init(PowerPCCPU *cpu) {} in ppc6xx_irq_init() 81 static inline void ppc970_irq_init(PowerPCCPU *cpu) {} in ppc970_irq_init() [all …]
|
H A D | spapr_irq.h | 67 PowerPCCPU *cpu, Error **errp); 68 void (*cpu_intc_reset)(SpaprInterruptController *intc, PowerPCCPU *cpu); 69 void (*cpu_intc_destroy)(SpaprInterruptController *intc, PowerPCCPU *cpu); 85 PowerPCCPU *cpu, Error **errp); 86 void spapr_irq_cpu_intc_reset(struct SpaprMachineState *spapr, PowerPCCPU *cpu); 87 void spapr_irq_cpu_intc_destroy(struct SpaprMachineState *spapr, PowerPCCPU *cpu);
|
H A D | spapr_cpu_core.h | 29 PowerPCCPU **threads; 39 void spapr_cpu_set_entry_state(PowerPCCPU *cpu, target_ulong nip, 58 static inline SpaprCpuState *spapr_cpu_state(PowerPCCPU *cpu) in spapr_cpu_state()
|
H A D | pnv_chip.h | 162 void (*intc_create)(PnvChip *chip, PowerPCCPU *cpu, Error **errp); 163 void (*intc_reset)(PnvChip *chip, PowerPCCPU *cpu); 164 void (*intc_destroy)(PnvChip *chip, PowerPCCPU *cpu); 165 void (*intc_print_info)(PnvChip *chip, PowerPCCPU *cpu, GString *buf);
|
H A D | spapr.h | 640 typedef target_ulong (*spapr_hcall_fn)(PowerPCCPU *cpu, SpaprMachineState *sm, 646 target_ulong spapr_hypercall(PowerPCCPU *cpu, target_ulong opcode, 649 target_ulong vhyp_mmu_resize_hpt_prepare(PowerPCCPU *cpu, 652 target_ulong vhyp_mmu_resize_hpt_commit(PowerPCCPU *cpu, 817 typedef void (*spapr_rtas_fn)(PowerPCCPU *cpu, SpaprMachineState *sm, 822 target_ulong spapr_rtas_call(PowerPCCPU *cpu, SpaprMachineState *sm, 930 void spapr_store_hpte(PowerPCCPU *cpu, hwaddr ptex, 932 void spapr_mce_req_event(PowerPCCPU *cpu, bool recovered); 981 int spapr_get_vcpu_id(PowerPCCPU *cpu); 982 bool spapr_set_vcpu_id(PowerPCCPU *cpu, int cpu_index, Error **errp); [all …]
|
/openbmc/qemu/hw/ppc/ |
H A D | ppc.c | 44 void ppc_set_irq(PowerPCCPU *cpu, int irq, int level) in ppc_set_irq() 74 PowerPCCPU *cpu = opaque; in ppc6xx_set_irq() 145 void ppc6xx_irq_init(PowerPCCPU *cpu) in ppc6xx_irq_init() 154 PowerPCCPU *cpu = opaque; in ppc970_set_irq() 222 void ppc970_irq_init(PowerPCCPU *cpu) in ppc970_irq_init() 230 PowerPCCPU *cpu = opaque; in power7_set_irq() 245 void ppcPOWER7_irq_init(PowerPCCPU *cpu) in ppcPOWER7_irq_init() 253 PowerPCCPU *cpu = opaque; in power9_set_irq() 273 void ppcPOWER9_irq_init(PowerPCCPU *cpu) in ppcPOWER9_irq_init() 279 void ppc40x_core_reset(PowerPCCPU *cpu) in ppc40x_core_reset() [all …]
|
H A D | spapr_hcall.c | 81 static target_ulong h_resize_hpt_prepare(PowerPCCPU *cpu, in h_resize_hpt_prepare() 164 static target_ulong h_resize_hpt_commit(PowerPCCPU *cpu, in h_resize_hpt_commit() 205 static target_ulong h_set_sprg0(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_set_sprg0() 214 static target_ulong h_set_dabr(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_set_dabr() 232 static target_ulong h_set_xdabr(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_set_xdabr() 253 static target_ulong h_page_init(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_page_init() 319 static target_ulong register_vpa(PowerPCCPU *cpu, target_ulong vpa) in register_vpa() 357 static target_ulong deregister_vpa(PowerPCCPU *cpu, target_ulong vpa) in deregister_vpa() 373 static target_ulong register_slb_shadow(PowerPCCPU *cpu, target_ulong addr) in register_slb_shadow() 402 static target_ulong deregister_slb_shadow(PowerPCCPU *cpu, target_ulong addr) in deregister_slb_shadow() [all …]
|
H A D | spapr_rtas.c | 54 static void rtas_display_character(PowerPCCPU *cpu, SpaprMachineState *spapr, in rtas_display_character() 70 static void rtas_power_off(PowerPCCPU *cpu, SpaprMachineState *spapr, in rtas_power_off() 83 static void rtas_system_reboot(PowerPCCPU *cpu, SpaprMachineState *spapr, in rtas_system_reboot() 96 static void rtas_query_cpu_stopped_state(PowerPCCPU *cpu_, in rtas_query_cpu_stopped_state() 103 PowerPCCPU *cpu; in rtas_query_cpu_stopped_state() 127 static void rtas_start_cpu(PowerPCCPU *callcpu, SpaprMachineState *spapr, in rtas_start_cpu() 133 PowerPCCPU *newcpu; in rtas_start_cpu() 203 static void rtas_stop_self(PowerPCCPU *cpu, SpaprMachineState *spapr, in rtas_stop_self() 224 static void rtas_ibm_suspend_me(PowerPCCPU *cpu, SpaprMachineState *spapr, in rtas_ibm_suspend_me() 237 PowerPCCPU *c = POWERPC_CPU(cs); in rtas_ibm_suspend_me() [all …]
|
H A D | ppc_booke.c | 86 static void booke_update_irq(PowerPCCPU *cpu) in booke_update_irq() 202 PowerPCCPU *cpu = opaque; in booke_decr_cb() 220 PowerPCCPU *cpu = opaque; in booke_fit_cb() 240 PowerPCCPU *cpu = opaque; in booke_wdt_cb() 261 PowerPCCPU *cpu = env_archcpu(env); in store_booke_tsr() 289 PowerPCCPU *cpu = env_archcpu(env); in store_booke_tcr() 313 PowerPCCPU *cpu = opaque; in ppc_booke_timer_reset_handle() 331 PowerPCCPU *cpu = opaque; in cpu_state_change_handler() 344 void ppc_booke_timers_init(PowerPCCPU *cpu, uint32_t freq, uint32_t flags) in ppc_booke_timers_init()
|
H A D | spapr_cpu_core.c | 29 static void spapr_reset_vcpu(PowerPCCPU *cpu) in spapr_reset_vcpu() 86 void spapr_cpu_set_entry_state(PowerPCCPU *cpu, target_ulong nip, in spapr_cpu_set_entry_state() 196 static void spapr_unrealize_vcpu(PowerPCCPU *cpu, SpaprCpuCore *sc) in spapr_unrealize_vcpu() 228 static void spapr_delete_vcpu(PowerPCCPU *cpu) in spapr_delete_vcpu() 260 static bool spapr_realize_vcpu(PowerPCCPU *cpu, SpaprMachineState *spapr, in spapr_realize_vcpu() 291 static PowerPCCPU *spapr_create_vcpu(SpaprCpuCore *sc, int i, Error **errp) in spapr_create_vcpu() 298 PowerPCCPU *cpu; in spapr_create_vcpu() 347 sc->threads = g_new0(PowerPCCPU *, cc->nr_threads); in spapr_cpu_core_realize() 349 PowerPCCPU *cpu; in spapr_cpu_core_realize()
|
H A D | spapr_vhyp_mmu.c | 19 static target_ulong h_enter(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_enter() 100 static RemoveResult remove_hpte(PowerPCCPU *cpu in remove_hpte() 130 static target_ulong h_remove(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_remove() 178 static target_ulong h_bulk_remove(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_bulk_remove() 230 static target_ulong h_protect(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_protect() 269 static target_ulong h_read(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_read() 368 target_ulong vhyp_mmu_resize_hpt_prepare(PowerPCCPU *cpu, in vhyp_mmu_resize_hpt_prepare() 431 static int rehash_hpte(PowerPCCPU *cpu, in rehash_hpte() 520 static int rehash_hpt(PowerPCCPU *cpu, in rehash_hpt() 552 target_ulong vhyp_mmu_resize_hpt_commit(PowerPCCPU *cpu, in vhyp_mmu_resize_hpt_commit()
|
/openbmc/qemu/hw/intc/ |
H A D | xics_spapr.c | 61 static target_ulong h_cppr(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_cppr() 72 static target_ulong h_ipi(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_ipi() 88 static target_ulong h_xirr(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_xirr() 99 static target_ulong h_xirr_x(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_xirr_x() 111 static target_ulong h_eoi(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_eoi() 122 static target_ulong h_ipoll(PowerPCCPU *cpu, SpaprMachineState *spapr, in h_ipoll() 151 static void rtas_set_xive(PowerPCCPU *cpu, SpaprMachineState *spapr, in rtas_set_xive() 186 static void rtas_get_xive(PowerPCCPU *cpu, SpaprMachineState *spapr, in rtas_get_xive() 218 static void rtas_int_off(PowerPCCPU *cpu, SpaprMachineState *spapr, in rtas_int_off() 251 static void rtas_int_on(PowerPCCPU *cpu, SpaprMachineState *spapr, in rtas_int_on() [all …]
|
H A D | spapr_xive.c | 55 static void spapr_xive_cpu_to_nvt(PowerPCCPU *cpu, in spapr_xive_cpu_to_nvt() 72 PowerPCCPU *cpu = spapr_find_cpu(target); in spapr_xive_target_to_nvt() 102 static void spapr_xive_cpu_to_end(PowerPCCPU *cpu, uint8_t prio, in spapr_xive_cpu_to_end() 119 PowerPCCPU *cpu = spapr_find_cpu(target); in spapr_xive_target_to_end() 405 PowerPCCPU *cpu = spapr_find_cpu(vcpu_id); in spapr_xive_get_nvt() 441 PowerPCCPU *cpu = POWERPC_CPU(cs); in spapr_xive_match_nvt() 640 PowerPCCPU *cpu, Error **errp) in spapr_xive_cpu_intc_create() 662 PowerPCCPU *cpu) in spapr_xive_cpu_intc_reset() 681 PowerPCCPU *cpu) in spapr_xive_cpu_intc_destroy() 708 PowerPCCPU *cpu = POWERPC_CPU(cs); in spapr_xive_print_info() [all …]
|