qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v1 07/10] target-arm: Supress the use of TTBR1 for S


From: Edgar E. Iglesias
Subject: [Qemu-devel] [PATCH v1 07/10] target-arm: Supress the use of TTBR1 for S2 translations
Date: Thu, 3 Sep 2015 22:14:23 +0200

From: "Edgar E. Iglesias" <address@hidden>

Stage-2 MMU translations do not use TTBR1.

Signed-off-by: Edgar E. Iglesias <address@hidden>
---
 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]