riscv / riscv-j-extension

Working Draft of the RISC-V J Extension Specification
https://jira.riscv.org/browse/RVG-128
Creative Commons Attribution 4.0 International
158 stars 19 forks source link

Zjpm: Clarification on M-mode accesses with MPRV=1 #32

Closed abrestic-rivos closed 11 months ago

abrestic-rivos commented 1 year ago

If a memory access is made form M-mode with MPRV=1 and MPP set to a privilege mode with pointer masking enabled, is PM applied for that access? I would expect "yes" since MPRV modifies the privilege level at which loads and stores execute, but it would be good to call this out explicitly in the spec.

martinmaas commented 11 months ago

The answer is yes, and the latest version of the spec (75e6aa4) now explicitly calls this out in Section 2.6.