We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 15bb3e2 + 1479eca commit 0c76e26Copy full SHA for 0c76e26
1 file changed
src/target/riscv/riscv.c
@@ -1984,7 +1984,7 @@ static int riscv_address_translate(struct target *target,
1984
if (!(pte & PTE_V) || (!(pte & PTE_R) && (pte & PTE_W)))
1985
return ERROR_FAIL;
1986
1987
- if ((pte & PTE_R) || (pte & PTE_X)) /* Found leaf PTE. */
+ if ((pte & PTE_R) || (pte & PTE_W) || (pte & PTE_X)) /* Found leaf PTE. */
1988
break;
1989
1990
i--;
0 commit comments