From patchwork Sat Feb 15 16:07:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 24692 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f199.google.com (mail-ig0-f199.google.com [209.85.213.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 11AF7203BE for ; Sat, 15 Feb 2014 16:07:58 +0000 (UTC) Received: by mail-ig0-f199.google.com with SMTP id c10sf7287910igq.2 for ; Sat, 15 Feb 2014 08:07:58 -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=XQI6pxnDN79jk9zNn2EP76ZE0FRAhjMBZ3Ic+pgikEs=; b=aYy1qBoQO5WzBJbiDvNsGnKVZ7qXnJisZpaEAibLFjq6QBmVyDTiUhGKwCsEncG0sm G6tPkiRV0hYfpU6Yu8hCHp9oO4Z58OSXyO3vUAtT4xDpzN0JvWP/l9pYbVAvyJZ72NOW cqW+JtF78+ROgGIUe5J+xWnm6B+V9MdSYZPiJt1x0I2QGlSXJgU86G9h4bubQsSpXrnk xRPd/527LNv7r2p9v0OmVzz/f1jhU3bDu4MWtwuzkVKQBE1xx05Z8OUQUWu5dWeReiHV U7Gtzt9QWEwdS1qtRfnsjb5G6HzCaPii1goPgx8wtcSAHLF12SrQeB3zU/3Cahw7htpD a/Iw== X-Gm-Message-State: ALoCoQmVG0d6kBRgeguxfuu0JbN5HZ/QibMTaEWbZSYursEw765Pgfi9scES0am9wytF+RpipGkh X-Received: by 10.42.35.75 with SMTP id p11mr1539995icd.16.1392480478301; Sat, 15 Feb 2014 08:07:58 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.34.76 with SMTP id k70ls435909qgk.30.gmail; Sat, 15 Feb 2014 08:07:58 -0800 (PST) X-Received: by 10.221.40.10 with SMTP id to10mr5614433vcb.22.1392480478176; Sat, 15 Feb 2014 08:07:58 -0800 (PST) Received: from mail-ve0-f173.google.com (mail-ve0-f173.google.com [209.85.128.173]) by mx.google.com with ESMTPS id w5si3013900vcn.26.2014.02.15.08.07.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 15 Feb 2014 08:07:58 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.173 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.173; Received: by mail-ve0-f173.google.com with SMTP id jw12so3375887veb.4 for ; Sat, 15 Feb 2014 08:07:58 -0800 (PST) X-Received: by 10.52.156.232 with SMTP id wh8mr5033471vdb.23.1392480478098; Sat, 15 Feb 2014 08:07:58 -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 u4csp25583vcz; Sat, 15 Feb 2014 08:07:56 -0800 (PST) X-Received: by 10.205.35.199 with SMTP id sx7mr1281779bkb.32.1392480465789; Sat, 15 Feb 2014 08:07:45 -0800 (PST) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id ql3si3913520bkb.198.2014.02.15.08.07.42 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 15 Feb 2014 08:07:45 -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 1WEhm1-0006fu-Ii; Sat, 15 Feb 2014 16:07:25 +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 v3 17/31] target-arm: Implement AArch64 OSLAR_EL1 sysreg as WI Date: Sat, 15 Feb 2014 16:07:10 +0000 Message-Id: <1392480444-25565-18-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1392480444-25565-1-git-send-email-peter.maydell@linaro.org> References: <1392480444-25565-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.173 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 Reviewed-by: Peter Crosthwaite --- target-arm/helper.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/target-arm/helper.c b/target-arm/helper.c index 0eb56ae..5c2be64 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -1738,6 +1738,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 };