From patchwork Thu Apr 10 16:15:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 28217 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f197.google.com (mail-yk0-f197.google.com [209.85.160.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E0DE220671 for ; Thu, 10 Apr 2014 16:16:08 +0000 (UTC) Received: by mail-yk0-f197.google.com with SMTP id 19sf8174090ykq.0 for ; Thu, 10 Apr 2014 09:16:08 -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:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=ctcMo7dEujSTPDSNQwtC1IDt/OQsLH0JeW8Xy/PZ4+A=; b=X82HZenesHxsWj3RjyQuN/9OzgztdqAijRteBtxQVXVKfaeEBmmtP1O0g0GYDsNARZ 15raiE47omUdP39Rh1OvM8cpsrlwjR145qci4yna5CHjGtysuQTNV5cSAb8zN72tL1/j s/nUHq267JgKeHztQtLq49VqMaBcCx9Cz6PF/JKZNzdmD6oHT0Ww6PX9HRVl43TPDHIj QAJBeWlR/TBSqlcNPWYnY7yjC6xX1TnSRc9Syniy7GuQ+E7FSmfLrx6x8UQkvr8HePqj UL+rO0iF9ZoJ+e6sj6e+6DPwCAt59rNXHxEAuylV8mXtY8riSROYpI2j/dQAhCzYqlc/ D0QA== X-Gm-Message-State: ALoCoQnYq0eLcqgnuFOu5ktzf6ZV1UD28BLQSO+CIOYN0iGC0KYdMjeYCymaUvPm6rlEIQe4VTCR X-Received: by 10.58.59.104 with SMTP id y8mr8067256veq.18.1397146568654; Thu, 10 Apr 2014 09:16:08 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.47.197 with SMTP id m63ls1219999qga.58.gmail; Thu, 10 Apr 2014 09:16:08 -0700 (PDT) X-Received: by 10.220.81.194 with SMTP id y2mr968555vck.29.1397146568536; Thu, 10 Apr 2014 09:16:08 -0700 (PDT) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by mx.google.com with ESMTPS id sc7si773740vdc.121.2014.04.10.09.16.08 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 10 Apr 2014 09:16:08 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.176; Received: by mail-ve0-f176.google.com with SMTP id db11so3559444veb.21 for ; Thu, 10 Apr 2014 09:16:08 -0700 (PDT) X-Received: by 10.58.107.65 with SMTP id ha1mr15208722veb.1.1397146568477; Thu, 10 Apr 2014 09:16:08 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp72291vcb; Thu, 10 Apr 2014 09:16:08 -0700 (PDT) X-Received: by 10.153.11.163 with SMTP id ej3mr12886232lad.17.1397146563768; Thu, 10 Apr 2014 09:16:03 -0700 (PDT) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id lb6si3638048lab.191.2014.04.10.09.16.03 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 10 Apr 2014 09:16:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 2001:8b0:1d0::1 as permitted sender) client-ip=2001:8b0:1d0::1; Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1WYHdZ-0007rp-OC; Thu, 10 Apr 2014 17:15:37 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Alexander Graf , Laurent Desnogues , kvmarm@lists.cs.columbia.edu, Richard Henderson , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Christoffer Dall , Peter Crosthwaite , Greg Bellows Subject: [PATCH v6 25/37] target-arm: Implement AArch64 view of ACTLR Date: Thu, 10 Apr 2014 17:15:24 +0100 Message-Id: <1397146536-30116-26-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1397146536-30116-1-git-send-email-peter.maydell@linaro.org> References: <1397146536-30116-1-git-send-email-peter.maydell@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Implement the AArch64 view of the ACTLR (auxiliary control register). Note that QEMU internally tends to call this AUXCR for historical reasons. Signed-off-by: Peter Maydell Reviewed-by: Peter Crosthwaite --- target-arm/helper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target-arm/helper.c b/target-arm/helper.c index 10300aa..f2e6f17 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -2316,7 +2316,8 @@ void register_cp_regs_for_features(ARMCPU *cpu) if (arm_feature(env, ARM_FEATURE_AUXCR)) { ARMCPRegInfo auxcr = { - .name = "AUXCR", .cp = 15, .crn = 1, .crm = 0, .opc1 = 0, .opc2 = 1, + .name = "AUXCR", .state = ARM_CP_STATE_BOTH, + .opc0 = 3, .opc1 = 0, .crn = 1, .crm = 0, .opc2 = 1, .access = PL1_RW, .type = ARM_CP_CONST, .resetvalue = cpu->reset_auxcr };