arch-arm: Fix Execution Permission in Stage2 Direct Permission.

In Stage 2 under AArch64, execution permission does not need read
permission.

Change-Id: I45887e8f4d50ed5edc4afaed9a2dd8a74db9d0d4
This commit is contained in:
Junshi Wang
2024-08-21 15:46:59 +08:00
committed by Giacomo Travaglini
parent f6010439fe
commit 7205652476

View File

@@ -627,7 +627,7 @@ MMU::s2PermBits64(TlbEntry *te, const RequestPtr &req, Mode mode,
"w:%d, x:%d\n", te->hap, xn, pxn, r, w, x);
if (x) {
grant = grant_read && !xn;
grant = !xn;
} else if (req->isAtomic()) {
grant = grant_read || grant_write;
} else if (w) {