From patchwork Wed May 13 06:52:38 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: 471715 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 48CE5140D16 for ; Wed, 13 May 2015 17:04:57 +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=HWn8yF4g; dkim-atps=neutral Received: from localhost ([::1]:46723 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsQit-0002YY-5L for incoming@patchwork.ozlabs.org; Wed, 13 May 2015 03:04:55 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40502) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsQiN-0001iL-PU for qemu-devel@nongnu.org; Wed, 13 May 2015 03:04:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YsQiI-0003Zo-7w for qemu-devel@nongnu.org; Wed, 13 May 2015 03:04:23 -0400 Received: from mail-qc0-x231.google.com ([2607:f8b0:400d:c01::231]:33153) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsQiI-0003Zg-4E for qemu-devel@nongnu.org; Wed, 13 May 2015 03:04:18 -0400 Received: by qcvo8 with SMTP id o8so17846076qcv.0 for ; Wed, 13 May 2015 00:04:17 -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=G5i/anNSb4nwbexPTmHdSoETarxuJh7duPyv7CAiX8c=; b=HWn8yF4gTX2WlhFz1ObQuZ94QekTw3B2WUSqonF1Z9mmjPapqAqw+pGS3mvbHflZIt 6M15fdJDTghrgg+vXQ+CWrgxRvITT/Ppg0C0Om/iwZvesr7VMfPjAunNltR/l7f8rYYV AR1EsaimQF49cGLeEXKkjDce798C5RIYmXcCjvR/F3nDZAJM0xQopCzbSRBU2z2i8ZrD ME5UU+eXd4idSc1Nzfe6QlwcE125HYzR2M9ovUXBj2dJt3Dk1xcB/VdXuV0TM1gKzzj9 69yDdDJElnUdTC5NJxP3Mr9epwDnKkOBlO9YkJ8va0JTUknhWCE66H50oGKf3y1Mb5Yf 50vg== X-Received: by 10.55.20.65 with SMTP id e62mr40527331qkh.90.1431500657837; Wed, 13 May 2015 00:04:17 -0700 (PDT) Received: from localhost ([203.126.243.116]) by mx.google.com with ESMTPSA id r33sm1143626qkh.12.2015.05.13.00.04.16 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 13 May 2015 00:04:17 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org, peter.maydell@linaro.org Date: Wed, 13 May 2015 16:52:38 +1000 Message-Id: <1431499963-1019-14-git-send-email-edgar.iglesias@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1431499963-1019-1-git-send-email-edgar.iglesias@gmail.com> References: <1431499963-1019-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:400d:c01::231 Cc: edgar.iglesias@xilinx.com, serge.fdrv@gmail.com, alex.bennee@linaro.org, agraf@suse.de, greg.bellows@linaro.org Subject: [Qemu-devel] [PATCH v1 13/18] target-arm: Add 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+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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/target-arm/helper.c b/target-arm/helper.c index 7ad9133..5b7c195 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -2436,6 +2436,11 @@ static const ARMCPRegInfo v8_cp_reginfo[] = { { .name = "AT_S1E0W", .state = ARM_CP_STATE_AA64, .opc0 = 1, .opc1 = 0, .crn = 7, .crm = 8, .opc2 = 3, .access = PL1_W, .type = ARM_CP_NO_RAW, .writefn = ats_write64 }, + { .name = "PAR_EL1", .state = ARM_CP_STATE_AA64, + .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,