We shall only go through the else branch for code_read
This commit is contained in:
mio
2025-01-04 15:57:02 +08:00
parent fcca82bb28
commit 6974b53588

View File

@@ -1665,7 +1665,7 @@ load_helper(CPUArchState *env, target_ulong addr, TCGMemOpIdx oi,
return 0;
}
}
} else {
} else if (code_read) {
// code fetching
// Unicorn: callback on fetch from NX
if (mr != NULL && !(mr->perms & UC_PROT_EXEC)) { // non-executable