From: Andre Przywara Subject: Re: [Qemu-devel] [kvm-unit-tests PATCH v13 2/4] arm: Add PMU test Date: Thu, 1 Dec 2016 12:19:21 +0000 Message-ID: References: <1480569402-8848-1-git-send-email-wei@redhat.com> <1480569402-8848-3-git-send-email-wei@redhat.com> <20161201090303.6vdo7iqlj2lfqqvv@kamzik.brq.redhat.com> <369668b9-d158-45dd-562d-cf25cdaaa749@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Andrew Jones , Wei Huang , Aaron Lindsay , kvm-devel , croberts@codeaurora.org, QEMU Developers , Alistair Francis , "kvmarm@lists.cs.columbia.edu" , Shannon Zhao To: Peter Maydell Return-path: Received: from foss.arm.com ([217.140.101.70]:41990 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754986AbcLAMSh (ORCPT ); Thu, 1 Dec 2016 07:18:37 -0500 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: Hi, On 01/12/16 12:02, Peter Maydell wrote: > On 1 December 2016 at 11:28, Andre Przywara wrote: >> I don't think so. At least here as a _variable_ type uint32_t is >> probably the right one, as the ARMv8 ARM explicitly says that PMCR is a >> 32-bit register, for both bitnesses. > > For 64-bit ARM this is strictly speaking just shorthand for "64-bit > register with the top 32-bit being RES0". It is in theory possible that > a future architecture extension might define uses for those RES0 > bits. I trade: "in theory possible that a future architecture extension might" (that's four speculative terms, right?) against: ARMv8 ARM, D7.4.7 PMCR_EL0, Performance Monitors Control Register: Attributes PMCR_EL0 is a 32-bit register. If this ever gets extended, we would need extra code to deal with the new bits, so we would need to touch the code anyway. And again, it's just a local variable, not an interface. Cheers, Andre. P.S. We really should save this discussion for a Friday afternoon ;-)