Andreas Sandberg has submitted this change and it was merged. ( https://gem5-review.googlesource.com/10507 )

Change subject: arch-arm: Perform stage 2 lookups using the EL2 state
......................................................................

arch-arm: Perform stage 2 lookups using the EL2 state

Change-Id: Ic56b694f22a26e9c208a10e5703d4b5b0900070f
Signed-off-by: Andreas Sandberg <[email protected]>
Reviewed-by: Giacomo Travaglini <[email protected]>
Reviewed-on: https://gem5-review.googlesource.com/10507
Maintainer: Giacomo Travaglini <[email protected]>
---
M src/arch/arm/stage2_lookup.cc
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Giacomo Travaglini: Looks good to me, approved; Looks good to me, approved



diff --git a/src/arch/arm/stage2_lookup.cc b/src/arch/arm/stage2_lookup.cc
index 00c515d..7e78a31 100644
--- a/src/arch/arm/stage2_lookup.cc
+++ b/src/arch/arm/stage2_lookup.cc
@@ -66,7 +66,7 @@
// checking. So call translate on stage 2 to do the checking. As the
         // entry is now in the TLB this should always hit the cache.
         if (fault == NoFault) {
-            if (inAArch64(tc))
+            if (ELIs64(tc, EL2))
fault = stage2Tlb->checkPermissions64(stage2Te, &req, mode, tc);
             else
                 fault = stage2Tlb->checkPermissions(stage2Te, &req, mode);

--
To view, visit https://gem5-review.googlesource.com/10507
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: Ic56b694f22a26e9c208a10e5703d4b5b0900070f
Gerrit-Change-Number: 10507
Gerrit-PatchSet: 3
Gerrit-Owner: Andreas Sandberg <[email protected]>
Gerrit-Reviewer: Andreas Sandberg <[email protected]>
Gerrit-Reviewer: Giacomo Travaglini <[email protected]>
Gerrit-Reviewer: Ivan Pizarro <[email protected]>
Gerrit-Reviewer: Pau Cabre <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to