mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 02:54:58 -06:00
ppc/pnv: change powernv_ prefix to pnv_ for overall naming consistency
The 'pnv' prefix is now used for all and the routines populating the device tree start with 'pnv_dt'. The handler of the PnvXScomInterface is also renamed to 'dt_xscom' which should reflect that it is populating the device tree under the 'xscom@' node of the chip. Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
a9dd6604a6
commit
b168a138a8
8 changed files with 67 additions and 71 deletions
|
@ -37,7 +37,7 @@ static const char *pnv_core_cpu_typename(PnvCore *pc)
|
|||
return cpu_type;
|
||||
}
|
||||
|
||||
static void powernv_cpu_reset(void *opaque)
|
||||
static void pnv_cpu_reset(void *opaque)
|
||||
{
|
||||
PowerPCCPU *cpu = opaque;
|
||||
CPUState *cs = CPU(cpu);
|
||||
|
@ -54,7 +54,7 @@ static void powernv_cpu_reset(void *opaque)
|
|||
env->msr |= MSR_HVB; /* Hypervisor mode */
|
||||
}
|
||||
|
||||
static void powernv_cpu_init(PowerPCCPU *cpu, Error **errp)
|
||||
static void pnv_cpu_init(PowerPCCPU *cpu, Error **errp)
|
||||
{
|
||||
CPUPPCState *env = &cpu->env;
|
||||
int core_pir;
|
||||
|
@ -73,7 +73,7 @@ static void powernv_cpu_init(PowerPCCPU *cpu, Error **errp)
|
|||
/* Set time-base frequency to 512 MHz */
|
||||
cpu_ppc_tb_init(env, PNV_TIMEBASE_FREQ);
|
||||
|
||||
qemu_register_reset(powernv_cpu_reset, cpu);
|
||||
qemu_register_reset(pnv_cpu_reset, cpu);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -139,7 +139,7 @@ static void pnv_core_realize_child(Object *child, XICSFabric *xi, Error **errp)
|
|||
return;
|
||||
}
|
||||
|
||||
powernv_cpu_init(cpu, &local_err);
|
||||
pnv_cpu_init(cpu, &local_err);
|
||||
if (local_err) {
|
||||
error_propagate(errp, local_err);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue