Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify behaviour of vstid/vstidc registers. #446

Merged
merged 2 commits into from
Nov 8, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions src/tid-ext.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,15 @@ include::img/stidreg.edn[]
[#vstid,reftext="vstid"]
==== Virtual Supervisor Thread Identifier (vstid)

The <<vstid>> register is a VSLEN-bit read-write register. It is used to
identify the current thread in virtual supervisor mode. The reset value of this
The <<vstid>> register is a VSLEN-bit read-write register. It is VS-mode's
version of supervisor register <<stid>> used to identify the current
thread in virtual supervisor mode. As other Virtual Supervisor registers
when V=1, <<vstid>> substitutes for the usual <<stid>>, so that
instructions that normally read or modify <<stid>> actually access
<<vstid>> instead. When V=0, <<vstid>> does not directly affect the
behaviour of the machine.

The reset value of this
register is UNSPECIFIED.

.Virtual supervisor thread identifier register
Expand Down Expand Up @@ -122,8 +129,13 @@ include::img/stidcreg.edn[]
==== Virtual Supervisor Thread Identifier Capability (vstidc)

The <<vstidc>> register is a CLEN-bit read-write capability register.
It is the capability extension of the <<vstid>> register.
It is used to identify the current thread in virtual supervisor mode.
It is the capability extension of the <<stidc>> register used to
identify the current thread in virtual supervisor mode.
As other Virtual Supervisor registers when V=1, <<vstidc>> substitutes
for the usual <<stidc>>, so that instructions that normally read or modify
<<stidc>> actually access <<vstidc>> instead.
When V=0, <<vstidc>> does not directly affect the
behaviour of the machine.
On reset the tag of <<vstidc>> will be set to 0 and the remainder
of the data is UNSPECIFIED.

Expand Down
Loading