arch-arm: Use isSecure variable for Stage2Lookup
[gem5.git] / src / arch / arm / tlb.cc
index dc4296d776ad554b81bd8cc23fdeb156bf72d596..e8bb718050a0d74576c37294426deef90bc626f7 100644 (file)
@@ -1655,7 +1655,7 @@ TLB::getResultTe(TlbEntry **te, const RequestPtr &req,
             fault = checkPermissions(s1Te, req, mode);
         if (stage2Req & (fault == NoFault)) {
             Stage2LookUp *s2Lookup = new Stage2LookUp(this, stage2Tlb, *s1Te,
-                req, translation, mode, timing, functional, !(s1Te->ns),
+                req, translation, mode, timing, functional, isSecure,
                 curTranType);
             fault = s2Lookup->getTe(tc, mergeTe);
             if (s2Lookup->isComplete()) {