Skip to content

Commit

Permalink
Svpbmt allows additional PMA overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
aswaterman committed Feb 12, 2024
1 parent 55816d5 commit 22a6574
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/priv-preface.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ in `menvcfg` and `henvcfg`.
* Clarified that, for a given exception cause, `__x__tval` might sometimes
be set to a nonzero value but sometimes not.
* Clarified exception behavior of unimplemented or inaccessible CSRs.
* Clarified that Svpbmt allows implementations to override additional PMAs.

[.big]*_Preface to Version 20211203_*

Expand Down
7 changes: 6 additions & 1 deletion src/supervisor.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1837,7 +1837,7 @@ associated memory pages. The encoding for the PBMT bits is captured in
The Svpbmt extension depends on Sv39.

[[pbmt]]
.Encodings for PBMT field in Sv39, Sv48, and Sv57 PTEs. Attributes not mentioned are inherited from PMA associated with the physical address.
.Encodings for PBMT field in Sv39, Sv48, and Sv57 PTEs.
[%autowidth,float="center",align="center",cols="^,^,<",options="header"]
|===
|Mode |Value |Requested Memory Attributes
Expand All @@ -1855,6 +1855,11 @@ Non-cacheable, non-idempotent, strongly-ordered (I/O ordering), I/O +
_Reserved for future standard use_
|===

Implementations might override additional PMAs not explicitly listed in
<<pbmt>>.
For example, a misaligned memory access to a page with PBMT=IO might raise an
exception, even if the same access would have succeeded for PBMT=PMA.

[NOTE]
====
Future extensions may provide more and/or finer-grained control over
Expand Down

0 comments on commit 22a6574

Please sign in to comment.