arch-arm: Fix physmem NS attribute in VMSAv8-32 descriptors
[gem5.git] / src / arch / arm / table_walker.hh
index 9dd2c2b1e73599bacee8670bff23259cc1f4e3a3..bf81248f9e5e417c5d0b1c6220a6a90ce09a27be 100644 (file)
@@ -229,7 +229,7 @@ class TableWalker : public ClockedObject
          */
         bool secure(bool have_security, WalkerState *currState) const
         {
-            if (have_security) {
+            if (have_security && currState->secureLookup) {
                 if (type() == PageTable)
                     return !bits(data, 3);
                 else