From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZIpKX-0007Ay-Qh for qemu-devel@nongnu.org; Fri, 24 Jul 2015 22:36:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZIpKU-0000Yp-D3 for qemu-devel@nongnu.org; Fri, 24 Jul 2015 22:36:53 -0400 Received: from mail-pa0-x22e.google.com ([2607:f8b0:400e:c03::22e]:36861) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZIpKU-0000Yj-4z for qemu-devel@nongnu.org; Fri, 24 Jul 2015 22:36:50 -0400 Received: by pachj5 with SMTP id hj5so22595984pac.3 for ; Fri, 24 Jul 2015 19:36:49 -0700 (PDT) Date: Sat, 25 Jul 2015 12:36:45 +1000 From: "Edgar E. Iglesias" Message-ID: <20150725023645.GA3976@toto> References: <1437047249-2357-1-git-send-email-peter.maydell@linaro.org> <1437047249-2357-2-git-send-email-peter.maydell@linaro.org> <20150724094802.GA22633@toto> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH 1/4] target-arm: Add the AArch64 view of the Secure physical timer List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers , Patch Tracking On Fri, Jul 24, 2015 at 11:06:01AM +0100, Peter Maydell wrote: > On 24 July 2015 at 10:48, Edgar E. Iglesias wrote: > > On Thu, Jul 16, 2015 at 12:47:26PM +0100, Peter Maydell wrote: > >> + { .name = "CNTPS_CVAL_EL1", .state = ARM_CP_STATE_AA64, > >> + .opc0 = 3, .opc1 = 7, .crn = 14, .crm = 2, .opc2 = 2, > >> + .type = ARM_CP_IO, > >> + .accessfn = gt_stimer_access, > >> + .fieldoffset = offsetof(CPUARMState, cp15.c14_timer[GTIMER_SEC].cval), > >> + .writefn = gt_sec_cval_write, .raw_writefn = raw_write, > > > I think you've missed a .access = PL1_RW here. With that change the series passes my sectimer tests. > > Yep, you're right, this needs to be folded into this patch: > > --- a/target-arm/helper.c > +++ b/target-arm/helper.c > @@ -1679,7 +1679,7 @@ static const ARMCPRegInfo generic_timer_cp_reginfo[] = { > }, > { .name = "CNTPS_CVAL_EL1", .state = ARM_CP_STATE_AA64, > .opc0 = 3, .opc1 = 7, .crn = 14, .crm = 2, .opc2 = 2, > - .type = ARM_CP_IO, > + .type = ARM_CP_IO, .access = PL1_RW, > .accessfn = gt_stimer_access, > .fieldoffset = offsetof(CPUARMState, cp15.c14_timer[GTIMER_SEC].cval), > .writefn = gt_sec_cval_write, .raw_writefn = raw_write, > > (I won't bother resending unless there are other fixes that need > to be made too.) Sounds good, the rest looks good to me, feel free to add my RB on the entire series. Reviewed-by: Edgar E. Iglesias Cheers, Edgar