From patchwork Tue Sep 8 16:51:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 53277 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by patches.linaro.org (Postfix) with ESMTPS id C316D22B05 for ; Tue, 8 Sep 2015 16:52:58 +0000 (UTC) Received: by wisv5 with SMTP id v5sf40137520wis.0 for ; Tue, 08 Sep 2015 09:52:58 -0700 (PDT) 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:date :message-id:in-reply-to:references:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=nfJ57owqMD6AG/GCM2r86OBBcXFgEJV+cQPdkC0jWZ4=; b=huZOG4nagGYO/2YuUiFM45QK6FiN5AAPa3fdChaoFeslVW8JCX01xRQF6ckITNfrSB fyLuodti9PiszLtpBxRUbMz1XkzAZ2Wl9QiCiqKbCi+r3iJfNbRwcxNhoy4cRXi4ENsn 0KsUpuAmPn1w4xUl8mV87gMEIgknPm/iZJqe2DbYLgccweQ0e6HcMyWpKbZakvCOgvYc JzmXVAM2cpfsKLKuFknGmImJSRHGuiQ6QoKGE0/eav1E4RELlXPntFPzuPV9JXzaGQoU azJykXPIQncDp9rJM9243Y1EzA58j5QpSwNnqD5+DongfFOAJ6rihDG71e0q8A4KoZgK qomA== X-Gm-Message-State: ALoCoQktfBUerq3KTM0DMKMncBMaUFj8+x8CPQeK6HkYFeGygukU4D304x9/iOEz31VTmdnK1zJi X-Received: by 10.194.93.198 with SMTP id cw6mr6904573wjb.3.1441731178116; Tue, 08 Sep 2015 09:52:58 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.25.134 with SMTP id c6ls753964lag.54.gmail; Tue, 08 Sep 2015 09:52:57 -0700 (PDT) X-Received: by 10.152.7.37 with SMTP id g5mr24097255laa.101.1441731177940; Tue, 08 Sep 2015 09:52:57 -0700 (PDT) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com. [209.85.217.177]) by mx.google.com with ESMTPS id f4si3756138lah.129.2015.09.08.09.52.57 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Sep 2015 09:52:57 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) client-ip=209.85.217.177; Received: by lbcao8 with SMTP id ao8so56791943lbc.3 for ; Tue, 08 Sep 2015 09:52:57 -0700 (PDT) X-Received: by 10.112.151.106 with SMTP id up10mr19963138lbb.106.1441731177834; Tue, 08 Sep 2015 09:52:57 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1094850lbq; Tue, 8 Sep 2015 09:52:56 -0700 (PDT) X-Received: by 10.140.238.66 with SMTP id j63mr39648838qhc.19.1441731176550; Tue, 08 Sep 2015 09:52:56 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id g77si4528151qhc.64.2015.09.08.09.52.56 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 08 Sep 2015 09:52:56 -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; Received: from localhost ([::1]:35782 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZM8d-0003ih-Ma for patch@linaro.org; Tue, 08 Sep 2015 12:52:55 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49135) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZM7U-0002TM-Nq for qemu-devel@nongnu.org; Tue, 08 Sep 2015 12:51:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZM7T-0007rd-PX for qemu-devel@nongnu.org; Tue, 08 Sep 2015 12:51:44 -0400 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:35049) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZM7T-0007b2-Jk for qemu-devel@nongnu.org; Tue, 08 Sep 2015 12:51:43 -0400 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1ZZM7I-0001iU-Pc for qemu-devel@nongnu.org; Tue, 08 Sep 2015 17:51:32 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Date: Tue, 8 Sep 2015 17:51:27 +0100 Message-Id: <1441731092-6513-16-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1441731092-6513-1-git-send-email-peter.maydell@linaro.org> References: <1441731092-6513-1-git-send-email-peter.maydell@linaro.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:8b0:1d0::1 Subject: [Qemu-devel] [PULL 15/20] target-arm: Add AArch64 access to PAR_EL1 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias Reviewed-by: Alistair Francis Message-id: 1441311266-8644-4-git-send-email-edgar.iglesias@gmail.com Reviewed-by: Peter Maydell 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 38a05e1..fc4b65f 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -2993,6 +2993,12 @@ static const ARMCPRegInfo v8_cp_reginfo[] = { { .name = "AT_S1E3W", .state = ARM_CP_STATE_AA64, .opc0 = 1, .opc1 = 6, .crn = 7, .crm = 8, .opc2 = 1, .access = PL3_W, .type = ARM_CP_NO_RAW, .writefn = ats_write64 }, + { .name = "PAR_EL1", .state = ARM_CP_STATE_AA64, + .type = ARM_CP_ALIAS, + .opc0 = 3, .opc1 = 0, .crn = 7, .crm = 4, .opc2 = 0, + .access = PL1_RW, .resetvalue = 0, + .fieldoffset = offsetof(CPUARMState, cp15.par_el[1]), + .writefn = par_write }, #endif /* TLB invalidate last level of translation table walk */ { .name = "TLBIMVALIS", .cp = 15, .opc1 = 0, .crn = 8, .crm = 3, .opc2 = 5,