From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42856) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXauq-0001gd-3p for qemu-devel@nongnu.org; Thu, 03 Sep 2015 16:15:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXaup-0007MP-Cr for qemu-devel@nongnu.org; Thu, 03 Sep 2015 16:15:24 -0400 Received: from mail-pa0-x236.google.com ([2607:f8b0:400e:c03::236]:35883) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXaup-0007MB-6g for qemu-devel@nongnu.org; Thu, 03 Sep 2015 16:15:23 -0400 Received: by pacwi10 with SMTP id wi10so551500pac.3 for ; Thu, 03 Sep 2015 13:15:22 -0700 (PDT) From: "Edgar E. Iglesias" Date: Thu, 3 Sep 2015 22:14:23 +0200 Message-Id: <1441311266-8644-8-git-send-email-edgar.iglesias@gmail.com> In-Reply-To: <1441311266-8644-1-git-send-email-edgar.iglesias@gmail.com> References: <1441311266-8644-1-git-send-email-edgar.iglesias@gmail.com> Subject: [Qemu-devel] [PATCH v1 07/10] target-arm: Supress the use of TTBR1 for S2 translations List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, peter.maydell@linaro.org Cc: edgar.iglesias@xilinx.com, serge.fdrv@gmail.com, alex.bennee@linaro.org, agraf@suse.de From: "Edgar E. Iglesias" Stage-2 MMU translations do not use TTBR1. 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 9ea9719..66b3fed 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -6372,6 +6372,11 @@ static bool get_phys_addr_lpae(CPUARMState *env, target_ulong address, } } + /* Stage2 translations do not use TTBR1. */ + if (mmu_idx == ARMMMUIdx_S2NS) { + ttbr1_valid = false; + } + /* Determine whether this address is in the region controlled by * TTBR0 or TTBR1 (or if it is in neither region and should fault). * This is a Non-secure PL0/1 stage 1 translation, so controlled by -- 1.9.1