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: 47876 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C58F12121F for ; Thu, 30 Apr 2015 18:16:53 +0000 (UTC) Received: by lbcne10 with SMTP id ne10sf17019132lbc.1 for ; Thu, 30 Apr 2015 11:16:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=2J48fN6VWIrQe0nPo0OEBEWy+K0iH9cgqX2pVyGRfGs=; b=bKpRVl3oYHZxH0W1a3ffXzfxIf787auc2i1F7JFRtrsJqjETzClXOvbPBKq5Qrrs2N 8Bq8bYb06fyi0FZv3VqyS5iU6esKVJHOEEUQzdKFI3Z4Qi00NFbY3jUeH94kRSJYYmto mYiVbdJ1zmKpSncRDDU44h0shHmUB3hyA7RU4FtmLpDeSIjPHyMhf2TQFKJQi0/V+PRv YN5klYtvqNSDnvZbCBwSd28IuFw2WZQpAyaJIPv26XHTq3dL1Rhx3kE6CWYyUFKwB6Ta jCOwDaSTEoWHso1hBiDNAeMsFigpVoVvPrFpqwhTmKW5BT4IfLQDUbXzw7lV6cxTTG78 MyOw== X-Gm-Message-State: ALoCoQl9wBpFGpaxvLtQYvmJQyEC2dGffzmxKwSujbR9HQS8gGxG26gLcp/TKebHuyu11sN84IOe X-Received: by 10.112.200.166 with SMTP id jt6mr3220522lbc.17.1430417812610; Thu, 30 Apr 2015 11:16:52 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.27.102 with SMTP id s6ls419495lag.73.gmail; Thu, 30 Apr 2015 11:16:52 -0700 (PDT) X-Received: by 10.112.222.133 with SMTP id qm5mr5064122lbc.86.1430417812463; Thu, 30 Apr 2015 11:16:52 -0700 (PDT) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com. [209.85.217.173]) by mx.google.com with ESMTPS id r10si2309897lbl.87.2015.04.30.11.16.52 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Apr 2015 11:16:52 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.173 as permitted sender) client-ip=209.85.217.173; Received: by lbbqq2 with SMTP id qq2so50894633lbb.3 for ; Thu, 30 Apr 2015 11:16:52 -0700 (PDT) X-Received: by 10.152.4.72 with SMTP id i8mr5230603lai.32.1430417812339; Thu, 30 Apr 2015 11:16:52 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.67.65 with SMTP id l1csp3271396lbt; Thu, 30 Apr 2015 11:16:51 -0700 (PDT) X-Received: by 10.55.33.94 with SMTP id h91mr9980683qkh.69.1430417810877; Thu, 30 Apr 2015 11:16:50 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id e77si2436417qkh.24.2015.04.30.11.16.50 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 30 Apr 2015 11:16:50 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:45260 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ynt0z-0005Mp-VB for patch@linaro.org; Thu, 30 Apr 2015 14:16:49 -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-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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: christopher.covington@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.173 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 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),