-
Notifications
You must be signed in to change notification settings - Fork 50
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
Simplify and fully specify xscratchcsw[l] #416
Comments
For
|
That's Sail code; I think it's ok to use that. It doesn't really match how we actually implemented it, so it would maybe be worth updating when/if the code below is merged into the upstream Sail repo. This code implements my suggested specification. It's also quite annoying that all of the Sail samples are for machine mode, because it leaves open questions about how things should behave when the CSR privilege doesn't match the current privilege (see the
|
I think the specification for
xscratchcsw[l]
could be significantly simplified and tightened up to avoid implementation defined behaviour by changing it to be something like this:This is way simpler to understand, and avoids all of the ambiguity around
csrs
andcsrc
. It's the most obvious thing to do, and it is also what we have implemented in the Sail model (not upstreamed yet) and in our designs.Potentially something similar could be done for
xnxti
but I haven't fully understood that bit of the spec yet.The text was updated successfully, but these errors were encountered: