Skip to content
Discussion options

You must be logged in to vote

Yes, "Store operations preceding the sfence.vma on that HART in program order".

When satp is changed, all preceding loads/stores in program order are translated using the old satp, and all following loads/stores in program order are translated using the new satp. Assuming TLB entries are tagged with ASID (otherwise the satp write will need to flush the TLB), then there may be multiple TLB entries tagged withthe same VA, but only the one tagged with an ASID matching the current satp.ASID will be used to translate that VA.

An sfence.vma is executed in the context of the current satp MODE and ASID. So if one wants to do an sfence.vma wrt to a new translation context, then it has to follow in…

Replies: 4 comments 15 replies

Comment options

You must be logged in to vote
9 replies
@gfavor
Comment options

gfavor Apr 9, 2025
Collaborator

@LIParadise
Comment options

@aswaterman
Comment options

@gfavor
Comment options

gfavor Apr 9, 2025
Collaborator

@LIParadise
Comment options

Answer selected by aswaterman
Comment options

You must be logged in to vote
3 replies
@gfavor
Comment options

gfavor Apr 13, 2025
Collaborator

@LIParadise
Comment options

@gfavor
Comment options

gfavor Apr 13, 2025
Collaborator

Comment options

You must be logged in to vote
3 replies
@gfavor
Comment options

gfavor Apr 13, 2025
Collaborator

@LIParadise
Comment options

@LIParadise
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants