From patchwork Tue Feb 9 23:47:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 8266911 Return-Path: X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C05559F1C1 for ; Tue, 9 Feb 2016 23:53:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 333882026C for ; Tue, 9 Feb 2016 23:53:14 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 80B0620270 for ; Tue, 9 Feb 2016 23:53:13 +0000 (UTC) Received: from localhost ([::1]:33689 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTI5p-0006xG-1O for patchwork-qemu-devel@patchwork.kernel.org; Tue, 09 Feb 2016 18:53:13 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTI2l-00044F-Cy for qemu-devel@nongnu.org; Tue, 09 Feb 2016 18:50:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTI2i-00016k-7T for qemu-devel@nongnu.org; Tue, 09 Feb 2016 18:50:03 -0500 Received: from mail-bl2nam02on0078.outbound.protection.outlook.com ([104.47.38.78]:19312 helo=NAM02-BL2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTI2i-00016g-2u for qemu-devel@nongnu.org; Tue, 09 Feb 2016 18:50:00 -0500 Received: from BL2NAM02FT005.eop-nam02.prod.protection.outlook.com (10.152.76.51) by BL2NAM02HT090.eop-nam02.prod.protection.outlook.com (10.152.76.196) with Microsoft SMTP Server (TLS) id 15.1.409.7; Tue, 9 Feb 2016 23:49:58 +0000 Authentication-Results: spf=fail (sender IP is 149.199.60.96) smtp.mailfrom=xilinx.com; codeaurora.org; dkim=none (message not signed) header.d=none; codeaurora.org; dmarc=none action=none header.from=xilinx.com; Received-SPF: Fail (protection.outlook.com: domain of xilinx.com does not designate 149.199.60.96 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.96; helo=xsj-tvapsmtpgw01; Received: from xsj-tvapsmtpgw01 (149.199.60.96) by BL2NAM02FT005.mail.protection.outlook.com (10.152.76.252) with Microsoft SMTP Server (TLS) id 15.1.409.7 via Frontend Transport; Tue, 9 Feb 2016 23:49:58 +0000 Received: from 172-16-1-203.xilinx.com ([172.16.1.203]:37884 helo=xsj-tvapsmtp02.xilinx.com) by xsj-tvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from ) id 1aTI2f-0002nu-D2; Tue, 09 Feb 2016 15:49:57 -0800 Received: from [127.0.0.1] (port=45102 helo=tsj-smtp-dlp1.xlnx.xilinx.com) by xsj-tvapsmtp02.xilinx.com with esmtp (Exim 4.63) (envelope-from ) id 1aTI2f-00015K-7r; Tue, 09 Feb 2016 15:49:57 -0800 Received: from xsj-tvapsmtp02 (xsj-tvapsmtp02.xilinx.com [172.16.1.203]) by tsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id u19NiG2h022904; Tue, 9 Feb 2016 15:44:16 -0800 Received: from [172.19.74.182] (port=50640 helo=xsjalistai50.xlnx.xilinx.com) by xsj-tvapsmtp02 with esmtp (Exim 4.63) (envelope-from ) id 1aTI2e-00015H-9r; Tue, 09 Feb 2016 15:49:56 -0800 From: Alistair Francis To: Date: Tue, 9 Feb 2016 15:47:21 -0800 Message-ID: X-Mailer: git-send-email 2.5.0 In-Reply-To: References: X-RCIS-Action: ALLOW X-TM-AS-MML: disable X-TM-AS-Product-Ver: IMSS-7.1.0.1679-8.0.0.1202-22054.006 X-TM-AS-Result: No--2.696-7.0-31-10 X-imss-scan-details: No--2.696-7.0-31-10 X-TMASE-MatchedRID: f9f8R8FcFNhwwyMFFFhiHBlckvO1m+Jc+eBf9ovw8I3/evmlVf9xZu7h h3SCuKRzThbvLLI8RvNCKM8UL7o4CyoLG8HLfjNfjQlVVwSbjyd9LQinZ4QefPcjNeVeWlqY+gt Hj7OwNO2mZ396Gt5HhekyHfON8Ecm9hr3JWlRu8IgtY5lpDmt4YInjowAW4apuEHPMS8R0ys+lI ad1uGCly+WSEW03u2H7wJXDQNSnG+Xl52S2vwb4fIMFg0InOPqz5gAnmajvOU4qCidlj1MUy0uA BDi47cA X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:149.199.60.96; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(106466001)(77096005)(11100500001)(2950100001)(33646002)(5003940100001)(50466002)(229853001)(2351001)(5001960100002)(19580405001)(87936001)(48376002)(6806005)(85426001)(5008740100001)(36756003)(5003600100002)(110136002)(118296001)(19580395003)(86362001)(189998001)(2906002)(71366001)(1220700001)(586003)(47776003)(50986999)(92566002)(64026002)(50226001)(1096002)(76176999)(4326007)(105606002)(107986001); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2NAM02HT090; H:xsj-tvapsmtpgw01; FPR:; SPF:Fail; MLV:sfv; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: c88b87e7-fdf8-435d-7d77-08d331abb7ec X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BL2NAM02HT090; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13024025)(8121501046)(13015025)(13017025)(13018025)(5005006)(13023025)(3002001)(10201501046); SRVR:BL2NAM02HT090; BCL:0; PCL:0; RULEID:; SRVR:BL2NAM02HT090; X-Forefront-PRVS: 08476BC6EF X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Feb 2016 23:49:58.2550 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.60.96]; Helo=[xsj-tvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2NAM02HT090 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.38.78 Cc: peter.maydell@linaro.org, alindsay@codeaurora.org, alistair.francis@xilinx.com, crosthwaitepeter@gmail.com, cov@codeaurora.org, nathan@nathanrossi.com Subject: [Qemu-devel] [PATCH v3 3/3] target-arm: 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+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The Linux kernel accesses this register early in its setup. Signed-off-by: Christopher Covington Signed-off-by: Alistair Francis Reviewed-by: Peter Maydell --- target-arm/helper.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/target-arm/helper.c b/target-arm/helper.c index 1778431..f700189 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -1027,6 +1027,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, .type = ARM_CP_ALIAS, + .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),