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

Add Ssdtso support #1501

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

cmuellner
Copy link

The second draft of the Ssdtso extension was published recently:
https://lists.riscv.org/g/tech-arch-review/message/183
This PR adds support for this new extension.

Note, that the Ssdtso specification is in development state (i.e., not frozen or even ratified).

The Ssdtso extension adds a DTSO bit to the {m,s,h}envcfg
registers to enable TSO. Since Spike is sequentially consistent
it always operates TSO-compatible. Therefore, all we have to do
is make Spike aware of the extension (reading and writing the
{m,s,h}envcfg register already exists and we don't use the bit
inside of Spike anywhere).

For completeness, this patch also defines the {M,S,H}ENVCFG_DTSO
mask macros, even if they are not used anywhere.

Signed-off-by: Christoph Müllner <[email protected]>
Copy link
Collaborator

@aswaterman aswaterman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's wait til the riscv-opcodes PR is merged, but LGTM otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants