Received: from eggs.gnu.org ([2001:4830:134:3::10]:59289) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2c5j-0007i0-51 for qemu-devel@nongnu.org; Fri, 04 Nov 2016 06:51:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2c5g-00044z-48 for qemu-devel@nongnu.org; Fri, 04 Nov 2016 06:51:23 -0400 References: <1477825928-10803-1-git-send-email-david@gibson.dropbear.id.au> <1477825928-10803-7-git-send-email-david@gibson.dropbear.id.au> From: Thomas Huth Message-ID: Date: Fri, 4 Nov 2016 11:51:13 +0100 MIME-Version: 1.0 In-Reply-To: <1477825928-10803-7-git-send-email-david@gibson.dropbear.id.au> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC 06/17] ppc: Rename cpu_version to compat_pvr List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Gibson , nikunj@linux.vnet.ibm.com, aik@ozlabs.ru, mdroth@linux.vnet.ibm.com Cc: lvivier@redhat.com, qemu-ppc@nongnu.org, qemu-devel@nongnu.org On 30.10.2016 12:11, David Gibson wrote: > 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 > --- > hw/ppc/spapr.c | 4 ++-- > hw/ppc/spapr_hcall.c | 30 +++++++++++++++--------------- > target-ppc/cpu.h | 6 +++--- > target-ppc/kvm.c | 4 ++-- > target-ppc/kvm_ppc.h | 4 ++-- > target-ppc/translate_init.c | 10 +++++----- > 6 files changed, 29 insertions(+), 29 deletions(-) Reviewed-by: Thomas Huth