From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42824) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXaui-0001Rq-6t for qemu-devel@nongnu.org; Thu, 03 Sep 2015 16:15:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXauh-0007If-Gx for qemu-devel@nongnu.org; Thu, 03 Sep 2015 16:15:16 -0400 Received: from mail-pa0-x22c.google.com ([2607:f8b0:400e:c03::22c]:35512) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXauh-0007IM-85 for qemu-devel@nongnu.org; Thu, 03 Sep 2015 16:15:15 -0400 Received: by pacfv12 with SMTP id fv12so592923pac.2 for ; Thu, 03 Sep 2015 13:15:14 -0700 (PDT) From: "Edgar E. Iglesias" Date: Thu, 3 Sep 2015 22:14:22 +0200 Message-Id: <1441311266-8644-7-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 06/10] target-arm: Supress TBI 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 have configurable TBI as the top byte is always 0 (48-bit IPAs). Signed-off-by: Edgar E. Iglesias --- target-arm/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-arm/helper.c b/target-arm/helper.c index ec19e68..9ea9719 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -6350,7 +6350,7 @@ static bool get_phys_addr_lpae(CPUARMState *env, target_ulong address, va_size = 64; if (el > 1) { tbi = extract64(tcr->raw_tcr, 20, 1); - } else { + } else if (mmu_idx != ARMMMUIdx_S2NS) { if (extract64(address, 55, 1)) { tbi = extract64(tcr->raw_tcr, 38, 1); } else { -- 1.9.1