From patchwork Mon Oct 17 18:40:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 77829 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp538124qge; Mon, 17 Oct 2016 12:14:14 -0700 (PDT) X-Received: by 10.200.36.125 with SMTP id d58mr27115311qtd.147.1476731654167; Mon, 17 Oct 2016 12:14:14 -0700 (PDT) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id b134si18658013qkg.314.2016.10.17.12.14.14 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 17 Oct 2016 12:14:14 -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; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:35255 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwDMT-0004jo-JV for patch@linaro.org; Mon, 17 Oct 2016 15:14:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38739) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwCqK-0001KV-9B for qemu-devel@nongnu.org; Mon, 17 Oct 2016 14:41:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwCqI-0001DJ-Vo for qemu-devel@nongnu.org; Mon, 17 Oct 2016 14:41:00 -0400 Received: from orth.archaic.org.uk ([2001:8b0:1d0::2]:47360) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bwCqI-00016y-ME for qemu-devel@nongnu.org; Mon, 17 Oct 2016 14:40:58 -0400 Received: from pm215 by orth.archaic.org.uk with local (Exim 4.84_2) (envelope-from ) id 1bwCqH-00059E-Ol for qemu-devel@nongnu.org; Mon, 17 Oct 2016 19:40:57 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Date: Mon, 17 Oct 2016 19:40:41 +0100 Message-Id: <1476729644-4595-23-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1476729644-4595-1-git-send-email-peter.maydell@linaro.org> References: <1476729644-4595-1-git-send-email-peter.maydell@linaro.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:8b0:1d0::2 Subject: [Qemu-devel] [PULL 22/25] target-arm: Implement dummy MDCCINT_EL1 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 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" MDCCINT_EL1 is part of the DCC debugger communication channel between the CPU and an attached external debugger. QEMU doesn't implement this, but since Linux may try to access this register we need to provide at least a dummy implementation. Signed-off-by: Peter Maydell Reviewed-by: Edgar E. Iglesias Message-id: 1476294876-12340-2-git-send-email-peter.maydell@linaro.org --- target-arm/helper.c | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.7.4 diff --git a/target-arm/helper.c b/target-arm/helper.c index 70e2742..a65f4f2 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -4060,6 +4060,14 @@ static const ARMCPRegInfo debug_cp_reginfo[] = { .cp = 14, .opc1 = 0, .crn = 0, .crm = 7, .opc2 = 0, .access = PL1_RW, .accessfn = access_tda, .type = ARM_CP_NOP }, + /* Dummy MDCCINT_EL1, since we don't implement the Debug Communications + * Channel but Linux may try to access this register. The 32-bit + * alias is DBGDCCINT. + */ + { .name = "MDCCINT_EL1", .state = ARM_CP_STATE_BOTH, + .cp = 14, .opc0 = 2, .opc1 = 0, .crn = 0, .crm = 2, .opc2 = 0, + .access = PL1_RW, .accessfn = access_tda, + .type = ARM_CP_NOP }, REGINFO_SENTINEL };