From patchwork Thu Jun 28 14:36:01 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 9675 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id D3F9E23E23 for ; Thu, 28 Jun 2012 14:36:16 +0000 (UTC) Received: from mail-yx0-f180.google.com (mail-yx0-f180.google.com [209.85.213.180]) by fiordland.canonical.com (Postfix) with ESMTP id A048CA18BCB for ; Thu, 28 Jun 2012 14:36:16 +0000 (UTC) Received: by yenq6 with SMTP id q6so2060820yen.11 for ; Thu, 28 Jun 2012 07:36:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=8B/XtED+fXotTfRvLJcgSVijX0EUpEQk71Sj6lAC0vU=; b=amAJ1OJ6ZbETi5kVa6rArYDq+YRsFWmf+fVE4oQSvCDKgOq2EnkiFz5OecaptxogG4 a4MJSfEog8AHwJAdNxrwEuhbvMKl5420it/CzFN1BbQLXwpwb1zA8p4yImR3zDkVEeKy OxlSTySc6Id2hKm7Gs47aU6kMr7RfBVUqQ7wUWCQaCwcWLA91hrbDPXuf+wKL0I8rzyT Sp4OvXQeMoxyTdeaV66ePvAbwEmtAV0/qX8Mm9n0xmZybWqbuIv70rDgBqHpipDy/AxR niqBbIRagqcuLbEl8yeEbzaH6VtS66pSE0JhXaZ5r1/BSuxHsYeMGSZolaCS2jDmpbOD bC8Q== Received: by 10.50.40.193 with SMTP id z1mr201815igk.0.1340894172014; Thu, 28 Jun 2012 07:36:12 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.24.148 with SMTP id v20csp43427ibb; Thu, 28 Jun 2012 07:36:10 -0700 (PDT) Received: by 10.216.136.203 with SMTP id w53mr970344wei.63.1340894170000; Thu, 28 Jun 2012 07:36:10 -0700 (PDT) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [81.2.115.146]) by mx.google.com with ESMTPS id fy6si650369wib.33.2012.06.28.07.36.09 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 28 Jun 2012 07:36:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 81.2.115.146 as permitted sender) client-ip=81.2.115.146; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 81.2.115.146 as permitted sender) smtp.mail=pm215@archaic.org.uk Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1SkFpG-0008MW-K6; Thu, 28 Jun 2012 15:36:06 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org Subject: [PATCH 08/13] target-arm: Add 64 bit variants of DBGDRAR and DBGDSAR for LPAE Date: Thu, 28 Jun 2012 15:36:01 +0100 Message-Id: <1340894166-32105-9-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1340894166-32105-1-git-send-email-peter.maydell@linaro.org> References: <1340894166-32105-1-git-send-email-peter.maydell@linaro.org> X-Gm-Message-State: ALoCoQlyTxWlCrIX80exw9NlYXKFeJ73KwRyV9ocZCGfFzcDV/80sUhgeH1TFfHInZRZ16WRYda2 LPAE extends the DBGDRAR and DBGDSAR debug registers to 64 bits; we only implement these as dummy RAZ versions; provide dummies for the 64 bit accesses as well. Signed-off-by: Peter Maydell --- target-arm/helper.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/target-arm/helper.c b/target-arm/helper.c index 3ee0555..4492fa3 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -881,6 +881,11 @@ static const ARMCPRegInfo lpae_cp_reginfo[] = { { .name = "AMAIR1", .cp = 15, .crn = 10, .crm = 3, .opc1 = 0, .opc2 = 1, .access = PL1_RW, .type = ARM_CP_CONST | ARM_CP_OVERRIDE, .resetvalue = 0 }, + /* 64 bit access versions of the (dummy) debug registers */ + { .name = "DBGDRAR", .cp = 14, .crm = 1, .opc1 = 0, + .access = PL0_R, .type = ARM_CP_CONST|ARM_CP_64BIT, .resetvalue = 0 }, + { .name = "DBGDSAR", .cp = 14, .crm = 2, .opc1 = 0, + .access = PL0_R, .type = ARM_CP_CONST|ARM_CP_64BIT, .resetvalue = 0 }, REGINFO_SENTINEL };