From patchwork Thu Apr 30 18:14:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Covington X-Patchwork-Id: 466676 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id C9729140322 for ; Fri, 1 May 2015 04:16:32 +1000 (AEST) Received: from localhost ([::1]:45260 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ynt0g-0005Mp-Vm for incoming@patchwork.ozlabs.org; Thu, 30 Apr 2015 14:16:30 -0400 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) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=2J48fN6VWIrQe0nPo0OEBEWy+K0iH9cgqX2pVyGRfGs=; b=RF2Tl5x6ox+MtEGjxlU0xAlM6bu1HGsjO1r0mezWZKzdvaVSHJO2SJWcYZPCdw+CLt ci3/AujotJLoOyyTs4U2ssgaARTf7T0tXKcrShtWA5Z7b3ZcVxax2GBsSpzqHJ0jRhTR DvBC5JklEx7yoJYTh4BadhRmptkUy7zxwo2Dd0Hqtb17a5conFW8Z+FyfjMPzHA+7aR4 IsPK3BYFs/hIp8F1sEqU9Vo41Smn/OljxQ7pDpMPos8VfoaLCUe6ZtZo72KAEApGuKWW epGGH0znGE4qFIruQ2/VVwxWEsph6IbVo4u9mCSWe+3NbXdw1wTncf0e4CFHCpVfBIA9 fpJw== X-Gm-Message-State: ALoCoQlISG9CUrPNH5P878CirrerGc8atcRw+IY4ZpbF6aCU+gQxrwZUVO1MxeUqd3O9H0nvwdaj X-Received: by 10.70.55.165 with SMTP id t5mr10530623pdp.102.1430417705286; Thu, 30 Apr 2015 11:15:05 -0700 (PDT) Received: from covaro.wlan.qualcomm.com (rrcs-67-52-130-29.west.biz.rr.com. [67.52.130.29]) by mx.google.com with ESMTPSA id y2sm2799818pbt.46.2015.04.30.11.15.03 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 30 Apr 2015 11:15:04 -0700 (PDT) From: Christopher Covington To: peter.maydell@linaro.org, qemu-devel@nongnu.org Date: Thu, 30 Apr 2015 14:14:25 -0400 Message-Id: <1430417667-4245-3-git-send-email-christopher.covington@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1430417667-4245-1-git-send-email-christopher.covington@linaro.org> References: <1430417667-4245-1-git-send-email-christopher.covington@linaro.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.192.173 Cc: Christopher Covington Subject: [Qemu-devel] [RFC 3/5] arm64: Add PMUSERENR_EL0 register X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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),