From patchwork Fri May 29 06:43:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 477604 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 34EBF14012C for ; Fri, 29 May 2015 16:54:24 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=Yvq4CFzb; dkim-atps=neutral Received: from localhost ([::1]:33927 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyEBS-0001mL-Eo for incoming@patchwork.ozlabs.org; Fri, 29 May 2015 02:54:22 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyE9J-0005Xz-73 for qemu-devel@nongnu.org; Fri, 29 May 2015 02:52:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YyE9F-0002u1-W5 for qemu-devel@nongnu.org; Fri, 29 May 2015 02:52:09 -0400 Received: from mail-pa0-x22d.google.com ([2607:f8b0:400e:c03::22d]:35058) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyE9F-0002tS-Pr for qemu-devel@nongnu.org; Fri, 29 May 2015 02:52:05 -0400 Received: by pacwv17 with SMTP id wv17so46070957pac.2 for ; Thu, 28 May 2015 23:52:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=XVexvSvJmvQvcm4HL93SgqeJAGY7EHY5mLvEBILd9gM=; b=Yvq4CFzbz050X3O5C31CSFaPV8pifo0ICi3GptA8JI3mAe00dA2soIRFRl7I7Q/vxB yXkjJBIde6O90opY3b6JXDEzaBOEy1UrZghOqmJBY51gAJ9yL9DRpyCOwadJc0/9dJWu PZZP2tJ3W2ntICLfqyXmbUYwf/E8nsOptmn6kiZu+5z73d6ULK+CdiCTFeG0hxmnthKB 1xhmY0nEvSYW3rrzSM56huUpfzv1HL4oELFlVpmVS6UUCbCwkaxdmQj54oeML2hwzlCH 3AhZF7uL1mkTQmOQO/GzG0FD4bCOMdGx33Zn+LC3v5fbVISWrqDWIzakQt+jBoY4MbNQ Doeg== X-Received: by 10.66.236.39 with SMTP id ur7mr12380511pac.123.1432882324930; Thu, 28 May 2015 23:52:04 -0700 (PDT) Received: from localhost ([203.126.243.116]) by mx.google.com with ESMTPSA id cu8sm4448923pad.1.2015.05.28.23.52.03 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 28 May 2015 23:52:04 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org, peter.maydell@linaro.org Date: Fri, 29 May 2015 16:43:19 +1000 Message-Id: <1432881807-18164-8-git-send-email-edgar.iglesias@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1432881807-18164-1-git-send-email-edgar.iglesias@gmail.com> References: <1432881807-18164-1-git-send-email-edgar.iglesias@gmail.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c03::22d Cc: edgar.iglesias@xilinx.com, serge.fdrv@gmail.com, alex.bennee@linaro.org, agraf@suse.de Subject: [Qemu-devel] [PATCH v3 07/15] target-arm: Add TTBR0_EL2 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- target-arm/helper.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/target-arm/helper.c b/target-arm/helper.c index df07a6a..193750b 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -2533,6 +2533,12 @@ static const ARMCPRegInfo v8_el3_no_el2_cp_reginfo[] = { { .name = "TPIDR_EL2", .state = ARM_CP_STATE_BOTH, .opc0 = 3, .opc1 = 4, .opc2 = 2, .crn = 13, .crm = 0, .access = PL2_RW, .type = ARM_CP_CONST, .resetvalue = 0 }, + { .name = "TTBR0_EL2", .state = ARM_CP_STATE_AA64, + .opc0 = 3, .opc1 = 4, .crn = 2, .crm = 0, .opc2 = 0, + .access = PL2_RW, .type = ARM_CP_CONST, .resetvalue = 0 }, + { .name = "HTTBR", .cp = 15, .crm = 2, .opc1 = 4, + .access = PL2_RW, .type = ARM_CP_64BIT | ARM_CP_CONST, + .resetvalue = 0 }, REGINFO_SENTINEL }; @@ -2625,6 +2631,14 @@ static const ARMCPRegInfo v8_el2_cp_reginfo[] = { .opc0 = 3, .opc1 = 4, .opc2 = 2, .crn = 13, .crm = 0, .access = PL2_RW, .resetvalue = 0, .fieldoffset = offsetof(CPUARMState, cp15.tpidr_el[2]) }, + { .name = "TTBR0_EL2", .state = ARM_CP_STATE_AA64, + .opc0 = 3, .opc1 = 4, .crn = 2, .crm = 0, .opc2 = 0, + .access = PL2_RW, .writefn = vmsa_ttbr_write, .resetvalue = 0, + .fieldoffset = offsetof(CPUARMState, cp15.ttbr0_el[2]) }, + { .name = "HTTBR", .cp = 15, .crm = 2, .opc1 = 4, + .access = PL2_RW, .type = ARM_CP_64BIT | ARM_CP_ALIAS, + .writefn = vmsa_ttbr_write, .resetvalue = 0, + .fieldoffset = offsetof(CPUARMState, cp15.ttbr0_el[2]) }, REGINFO_SENTINEL };