From patchwork Fri Jan 31 15:45:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 23961 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f199.google.com (mail-ve0-f199.google.com [209.85.128.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id AFC98202B2 for ; Fri, 31 Jan 2014 15:57:00 +0000 (UTC) Received: by mail-ve0-f199.google.com with SMTP id oy12sf12022001veb.6 for ; Fri, 31 Jan 2014 07:56:59 -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=2Wx+1OPaXdKLDPackiryj/CjUv6XPY/eyc6UPclPUSY=; b=PxLjLZikiBd6AbchtGEq3OvzLszF59UG4FSi25i+SLk8RnNe0rI65ddwNGW9XHO6cX iVa/t65/CHf58oPm8as4cgoUi4PkZKQVFO0PI8QnKLreUVJ1JI2QUKasgegD9rLHdu1E 5XkI+7fN4H9L5cF/9UDI8Zfi+rIGEkz3zVG71FdAZ2EJ4qnb5BUB6HXHfGIg7uiIJhaH EZ0ZV8fac7dET6ZHuYSGSncOIGLRHAne8I1pnGfh+w4K6tzf8FSIVROwDfNX4t0ZIwgR ++mNhAmNTwqeMAUwZDrxyVunqW9ctKLaUdrflYivZ4hRd4QJBO6sq9YhaztNPMhccvXa a0mA== X-Gm-Message-State: ALoCoQlcNfWLoCOau05PMYWqYqxbUqouepPjdcRTGdstFRB0HIJoKoYkwCQpP5bGa211rGDFLtnW X-Received: by 10.236.36.39 with SMTP id v27mr7549859yha.5.1391183819911; Fri, 31 Jan 2014 07:56:59 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.39.134 with SMTP id v6ls871575qgv.36.gmail; Fri, 31 Jan 2014 07:56:59 -0800 (PST) X-Received: by 10.220.106.84 with SMTP id w20mr17049541vco.18.1391183819792; Fri, 31 Jan 2014 07:56:59 -0800 (PST) Received: from mail-ve0-f182.google.com (mail-ve0-f182.google.com [209.85.128.182]) by mx.google.com with ESMTPS id eo4si3639088vdb.121.2014.01.31.07.56.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 31 Jan 2014 07:56:59 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.182 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.182; Received: by mail-ve0-f182.google.com with SMTP id jy13so3272303veb.13 for ; Fri, 31 Jan 2014 07:56:59 -0800 (PST) X-Received: by 10.58.226.163 with SMTP id rt3mr494321vec.34.1391183819701; Fri, 31 Jan 2014 07:56:59 -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 u4csp106359vcz; Fri, 31 Jan 2014 07:56:59 -0800 (PST) X-Received: by 10.152.21.4 with SMTP id r4mr1480297lae.51.1391183818414; Fri, 31 Jan 2014 07:56:58 -0800 (PST) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id b5si5285760lbp.13.2014.01.31.07.56.56 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 31 Jan 2014 07:56:58 -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 1W9GHo-00081d-OI; Fri, 31 Jan 2014 15:45:44 +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 25/35] target-arm: Implement AArch64 dummy MDSCR_EL1 Date: Fri, 31 Jan 2014 15:45:33 +0000 Message-Id: <1391183143-30724-26-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.182 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: , We don't support letting the guest do debug, but Linux prods the monitor debug system control register anyway, so implement a dummy RAZ/WI version. Signed-off-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 0dcb5b1..b0d28ca 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -1681,6 +1681,12 @@ static const ARMCPRegInfo v8_cp_reginfo[] = { .opc0 = 1, .opc2 = 0, .crn = 8, .crm = 7, .opc2 = 7, .access = PL1_W, .type = ARM_CP_NO_MIGRATE, .writefn = tlbi_aa64_vaa_write }, + /* Dummy implementation of monitor debug system control register: + * we don't support debug. + */ + { .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 }, REGINFO_SENTINEL };