Skip to content

How to do virtual address translation when satp is not active #1815

Answered by gfavor
trdthg asked this question in Q&A
Discussion options

You must be logged in to vote

If satp is architecturally not "active", then one can't be executing in S/HS and/or U modes (and hence any question about how translation is implemented in these modes is meaningless).

If satp is active and satp.MODE=Bare, then SPA[63:0]=VA[63:0]. Any limitations on the SPA (system physical address) are only imposed downstream by PMAs and/or PMPs. For example, PMAs may effectively say that all >48-bit physical addresses are invalid (and will result in an Access Fault).

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@trdthg
Comment options

@gfavor
Comment options

gfavor Jan 19, 2025
Collaborator

Answer selected by trdthg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants