ppc: Rename cpu_version to compat_pvr
commitd6e166c08203f47017555f5f52b70f35399c824c
authorDavid Gibson <david@gibson.dropbear.id.au>
Fri, 28 Oct 2016 11:09:37 +0000 (28 22:09 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 30 Jan 2017 23:10:13 +0000 (31 10:10 +1100)
treeabd7480a77a7937b71d3fabd363fe80271ce8fae
parent1d1be34d26b66069e20cbbcd798ea57763a0f152
ppc: Rename cpu_version to compat_pvr

The 'cpu_version' field in PowerPCCPU is badly named.  It's named after the
'cpu-version' device tree property where it is advertised, but that meaning
may not be obvious in most places it appears.

Worse, it doesn't even really correspond to that device tree property.  The
property contains either the processor's PVR, or, if the CPU is running in
a compatibility mode, a special "logical PVR" representing which mode.

Rename the cpu_version field, and a number of related variables to
compat_pvr to make this clearer.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: Thomas Huth <thuth@redhat.com>
hw/ppc/spapr.c
hw/ppc/spapr_hcall.c
target/ppc/cpu.h
target/ppc/kvm.c
target/ppc/kvm_ppc.h
target/ppc/translate_init.c