From patchwork Fri Jan 31 15:45:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 23953 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f70.google.com (mail-pb0-f70.google.com [209.85.160.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 96D62202B2 for ; Fri, 31 Jan 2014 15:45:56 +0000 (UTC) Received: by mail-pb0-f70.google.com with SMTP id rq2sf10695073pbb.9 for ; Fri, 31 Jan 2014 07:45:55 -0800 (PST) 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=gDValO1tQky/E9/pNUqVoktpDq80B/HhfRMa4THfRqU=; b=hQCyFuaI04jYR3YEp4swSVehWI8t+05LL2fZ3OdyirE0NXhYgZAD1PFuZ01GRtTbzP zXITbAjb0Ya+DMDShf0w/kPJmnGDYwizlHyyqyl1M0k1Zf5zAfwazvdTPLTepOyFGqdW MRFsUC3VGk0SmbObi8t/fk1qwf+HWVnEvFcdjqBF25wdwk1SQ3UXYkToLsJPSPzr31aO 15G42dcivygwM1LxbJRSZRJ3vhExc97mmM7TyloyZ7tqsBdFxpSN5lC6WHZkyOg5Anda aq4JwB3jyWsh/limEhD4Y3WIL8irCk7KDQL3ov7T9zFysmYoppvNS+UjeJCjXB8OnyxN 326Q== X-Gm-Message-State: ALoCoQn/MOO14ISiS85hCW0BGFMpOV0VcRRXU5esthouBeKOfemd+zue1xe/De9j3gzi7pQ7Wt35 X-Received: by 10.68.231.233 with SMTP id tj9mr325701pbc.2.1391183155691; Fri, 31 Jan 2014 07:45:55 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.91.110 with SMTP id y101ls1008514qgd.0.gmail; Fri, 31 Jan 2014 07:45:55 -0800 (PST) X-Received: by 10.58.7.1 with SMTP id f1mr16760405vea.15.1391183155546; Fri, 31 Jan 2014 07:45:55 -0800 (PST) Received: from mail-ve0-f174.google.com (mail-ve0-f174.google.com [209.85.128.174]) by mx.google.com with ESMTPS id mw2si3650783vcb.19.2014.01.31.07.45.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 31 Jan 2014 07:45:55 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.174 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.174; Received: by mail-ve0-f174.google.com with SMTP id pa12so3222746veb.33 for ; Fri, 31 Jan 2014 07:45:55 -0800 (PST) X-Received: by 10.58.49.161 with SMTP id v1mr16726005ven.5.1391183155446; Fri, 31 Jan 2014 07:45:55 -0800 (PST) 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.174.196 with SMTP id u4csp105655vcz; Fri, 31 Jan 2014 07:45:55 -0800 (PST) X-Received: by 10.112.73.180 with SMTP id m20mr399042lbv.68.1391183153528; Fri, 31 Jan 2014 07:45:53 -0800 (PST) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id ap10si5245914lac.110.2014.01.31.07.45.51 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 31 Jan 2014 07:45:53 -0800 (PST) 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 1W9GHp-00082H-A5; Fri, 31 Jan 2014 15:45:45 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Alexander Graf , Michael Matz , Claudio Fontana , Dirk Mueller , Laurent Desnogues , kvmarm@lists.cs.columbia.edu, Richard Henderson , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Christoffer Dall , Will Newton , Peter Crosthwaite , Rob Herring Subject: [PATCH v2 35/35] target-arm: Implement AArch64 OSLAR_EL1 sysreg as WI Date: Fri, 31 Jan 2014 15:45:43 +0000 Message-Id: <1391183143-30724-36-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1391183143-30724-1-git-send-email-peter.maydell@linaro.org> References: <1391183143-30724-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.174 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: , Define a dummy version of the AArch64 OSLAR_EL1 system register which just ignores writes. Linux will always write to this (it is the OS lock used for debugging), but we don't support debug. Signed-off-by: Peter Maydell --- target-arm/helper.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/target-arm/helper.c b/target-arm/helper.c index 1621030..43a4f31 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -1764,6 +1764,10 @@ static const ARMCPRegInfo v8_cp_reginfo[] = { { .name = "MDSCR_EL1", .state = ARM_CP_STATE_AA64, .opc0 = 2, .opc1 = 0, .crn = 0, .crm = 2, .opc2 = 2, .access = PL1_RW, .type = ARM_CP_CONST, .resetvalue = 0 }, + /* We define a dummy WI OSLAR_EL1, because Linux writes to it. */ + { .name = "OSLAR_EL1", .state = ARM_CP_STATE_AA64, + .opc0 = 2, .opc1 = 0, .crn = 1, .crm = 0, .opc2 = 4, + .access = PL1_W, .type = ARM_CP_NOP }, REGINFO_SENTINEL };