From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38442) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnszL-0003OU-1x for qemu-devel@nongnu.org; Thu, 30 Apr 2015 14:15:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YnszJ-00025I-UN for qemu-devel@nongnu.org; Thu, 30 Apr 2015 14:15:07 -0400 Received: from mail-pd0-f173.google.com ([209.85.192.173]:34318) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnszJ-000246-NG for qemu-devel@nongnu.org; Thu, 30 Apr 2015 14:15:05 -0400 Received: by pdbqa5 with SMTP id qa5so68097308pdb.1 for ; Thu, 30 Apr 2015 11:15:05 -0700 (PDT) From: Christopher Covington Date: Thu, 30 Apr 2015 14:14:25 -0400 Message-Id: <1430417667-4245-3-git-send-email-christopher.covington@linaro.org> In-Reply-To: <1430417667-4245-1-git-send-email-christopher.covington@linaro.org> References: <1430417667-4245-1-git-send-email-christopher.covington@linaro.org> Subject: [Qemu-devel] [RFC 3/5] arm64: Add PMUSERENR_EL0 register List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: peter.maydell@linaro.org, qemu-devel@nongnu.org Cc: Christopher Covington The Linux kernel accesses this register early in its setup. Signed-off-by: Christopher Covington --- target-arm/helper.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/target-arm/helper.c b/target-arm/helper.c index c9463cb..863cfd0 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -951,6 +951,12 @@ static const ARMCPRegInfo v7_cp_reginfo[] = { .fieldoffset = offsetof(CPUARMState, cp15.c9_pmuserenr), .resetvalue = 0, .writefn = pmuserenr_write, .raw_writefn = raw_write }, + { .name = "PMUSERENR_EL0", .state = ARM_CP_STATE_AA64, + .opc0 = 3, .opc1 = 3, .crn = 9, .crm = 14, .opc2 = 0, + .access = PL0_R | PL1_RW, + .fieldoffset = offsetof(CPUARMState, cp15.c9_pmuserenr), + .resetvalue = 0, + .writefn = pmuserenr_write, .raw_writefn = raw_write }, { .name = "PMINTENSET", .cp = 15, .crn = 9, .crm = 14, .opc1 = 0, .opc2 = 1, .access = PL1_RW, .fieldoffset = offsetof(CPUARMState, cp15.c9_pminten), -- 1.9.1