Searched refs:compat_pvr (Results 1 – 4 of 4) sorted by relevance
| /openbmc/qemu/target/ppc/ |
| H A D | compat.c | 124 static bool pcc_compat(PowerPCCPUClass *pcc, uint32_t compat_pvr, in pcc_compat() argument 127 const CompatInfo *compat = compat_by_pvr(compat_pvr); in pcc_compat() 153 bool ppc_check_compat(PowerPCCPU *cpu, uint32_t compat_pvr, in ppc_check_compat() argument 162 return pcc_compat(pcc, compat_pvr, min_compat_pvr, max_compat_pvr); in ppc_check_compat() 165 bool ppc_type_check_compat(const char *cputype, uint32_t compat_pvr, in ppc_type_check_compat() argument 169 return pcc_compat(pcc, compat_pvr, min_compat_pvr, max_compat_pvr); in ppc_type_check_compat() 172 int ppc_set_compat(PowerPCCPU *cpu, uint32_t compat_pvr, Error **errp) in ppc_set_compat() argument 174 const CompatInfo *compat = compat_by_pvr(compat_pvr); in ppc_set_compat() 179 if (!compat_pvr) { in ppc_set_compat() 182 error_setg(errp, "Unknown compatibility PVR 0x%08"PRIx32, compat_pvr); in ppc_set_compat() [all …]
|
| H A D | machine.c | 197 if (cpu->compat_pvr) { in cpu_post_load() 198 uint32_t compat_pvr = cpu->compat_pvr; in cpu_post_load() local 202 cpu->compat_pvr = 0; in cpu_post_load() 203 ret = ppc_set_compat(cpu, compat_pvr, &local_err); in cpu_post_load() 655 assert(!(cpu->compat_pvr && !cpu->vhyp)); in compat_needed() 656 return cpu->compat_pvr != 0; in compat_needed() 665 VMSTATE_UINT32(compat_pvr, PowerPCCPU),
|
| H A D | cpu.h | 1526 uint32_t compat_pvr; member 1751 bool ppc_check_compat(PowerPCCPU *cpu, uint32_t compat_pvr, 1753 bool ppc_type_check_compat(const char *cputype, uint32_t compat_pvr, 1756 int ppc_set_compat(PowerPCCPU *cpu, uint32_t compat_pvr, Error **errp); 1759 int ppc_set_compat_all(uint32_t compat_pvr, Error **errp); 1760 int ppc_init_compat_all(uint32_t compat_pvr, Error **errp); 1764 uint32_t *compat_pvr, const char *basedesc);
|
| /openbmc/qemu/hw/ppc/ |
| H A D | spapr.c | 153 if (cpu->compat_pvr) { in spapr_fixup_cpu_smt_dt() 154 ret = fdt_setprop_cell(fdt, offset, "cpu-version", cpu->compat_pvr); in spapr_fixup_cpu_smt_dt() 258 if (ppc_check_compat(cpu, CPU_POWERPC_LOGICAL_2_06, 0, cpu->compat_pvr)) { in spapr_dt_pa_features() 262 if (ppc_check_compat(cpu, CPU_POWERPC_LOGICAL_2_07, 0, cpu->compat_pvr)) { in spapr_dt_pa_features() 266 if (ppc_check_compat(cpu, CPU_POWERPC_LOGICAL_3_00, 0, cpu->compat_pvr)) { in spapr_dt_pa_features() 270 if (ppc_check_compat(cpu, CPU_POWERPC_LOGICAL_3_10, 0, cpu->compat_pvr)) { in spapr_dt_pa_features() 313 0, cpu->compat_pvr)) { in spapr_dt_pi_features() 1117 first_ppc_cpu->compat_pvr)) { in spapr_dt_ov5_platform_support() 4026 ppc_set_compat(core->threads[i], POWERPC_CPU(first_cpu)->compat_pvr, in spapr_core_plug()
|