From patchwork Thu Apr 30 18:14:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Covington X-Patchwork-Id: 47875 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DA6842121F for ; Thu, 30 Apr 2015 18:16:19 +0000 (UTC) Received: by laat2 with SMTP id t2sf18282177laa.2 for ; Thu, 30 Apr 2015 11:16:18 -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=2hvUEHYRmzQImVAxdRRGcFOIVNbdYc136QtWFH2VL2U=; b=RbTPv14QyefA2pMlfIVVXt3lnTJTXzPSWxEj8RV5nVdChNmPgrSXd82kkaHZxblEQI HDNQ3ElLwIatIRHF6PSKKlfwoBFfaW3b2gzX4vfI4FdmIxzAyzM2EERTzyaJBLmr6Cp0 XtSmjIkMJqeENISNvHwNopUUzFF8QBpGJgPdNhOs7WjDaTOcHmkkS8eaz+ZS7zEy85XI fFlEFZaTjwL6GKcRGsRjMWtuchVuA7Ew7tZ6hop59EvBsiAS9ey11iWlscXZaet12CJK wgcIjCOdQWCFcBqa+BF1Q+FsRPrf00FB5XiDZe2eIyk7pytEUevDK9DQpfr2eIlp/aBs MePg== X-Gm-Message-State: ALoCoQkir50AMvItNtTkNvu2O3o1zPkaockOR2lIWFMU0Qo7hWmYdT/x9QlyRYT51bBfzLYej/Jd X-Received: by 10.112.118.162 with SMTP id kn2mr3347522lbb.22.1430417778847; Thu, 30 Apr 2015 11:16:18 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.5.2 with SMTP id ci2ls351805lad.17.gmail; Thu, 30 Apr 2015 11:16:18 -0700 (PDT) X-Received: by 10.153.4.43 with SMTP id cb11mr5132353lad.122.1430417778704; Thu, 30 Apr 2015 11:16:18 -0700 (PDT) Received: from mail-la0-f43.google.com (mail-la0-f43.google.com. [209.85.215.43]) by mx.google.com with ESMTPS id t5si2324283lbb.35.2015.04.30.11.16.18 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Apr 2015 11:16:18 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) client-ip=209.85.215.43; Received: by labbd9 with SMTP id bd9so50626572lab.2 for ; Thu, 30 Apr 2015 11:16:18 -0700 (PDT) X-Received: by 10.152.37.228 with SMTP id b4mr4941640lak.117.1430417778618; Thu, 30 Apr 2015 11:16:18 -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 l1csp3271110lbt; Thu, 30 Apr 2015 11:16:18 -0700 (PDT) X-Received: by 10.55.20.2 with SMTP id e2mr10004505qkh.52.1430417777504; Thu, 30 Apr 2015 11:16:17 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 16si24156851qhu.131.2015.04.30.11.16.16 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 30 Apr 2015 11:16:17 -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]:45256 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ynt0S-0004MJ-Hl for patch@linaro.org; Thu, 30 Apr 2015 14:16:16 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38451) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnszL-0003PU-Sl 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 1YnszG-0001xG-OR for qemu-devel@nongnu.org; Thu, 30 Apr 2015 14:15:07 -0400 Received: from mail-pd0-f179.google.com ([209.85.192.179]:35948) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnszG-0001wG-Iz for qemu-devel@nongnu.org; Thu, 30 Apr 2015 14:15:02 -0400 Received: by pdea3 with SMTP id a3so68090324pde.3 for ; Thu, 30 Apr 2015 11:15:02 -0700 (PDT) X-Received: by 10.70.118.5 with SMTP id ki5mr10861000pdb.6.1430417702107; Thu, 30 Apr 2015 11:15:02 -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.14.59 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 30 Apr 2015 11:15:00 -0700 (PDT) From: Christopher Covington To: peter.maydell@linaro.org, qemu-devel@nongnu.org Date: Thu, 30 Apr 2015 14:14:24 -0400 Message-Id: <1430417667-4245-2-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.179 Cc: Christopher Covington Subject: [Qemu-devel] [RFC 2/5] arm64: Add PMOVSCLR_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.215.43 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 6aeb77c..c9463cb 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -904,6 +904,12 @@ static const ARMCPRegInfo v7_cp_reginfo[] = { .accessfn = pmreg_access, .writefn = pmovsr_write, .raw_writefn = raw_write }, + { .name = "PMOVSCLR_EL0", .state = ARM_CP_STATE_AA64, + .opc0 = 3, .opc1 = 3, .crn = 9, .crm = 12, .opc2 = 3, + .access = PL0_RW, .fieldoffset = offsetof(CPUARMState, cp15.c9_pmovsr), + .accessfn = pmreg_access, + .writefn = pmovsr_write, + .raw_writefn = raw_write }, /* Unimplemented so WI. */ { .name = "PMSWINC", .cp = 15, .crn = 9, .crm = 12, .opc1 = 0, .opc2 = 4, .access = PL0_W, .accessfn = pmreg_access, .type = ARM_CP_NOP },