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

RV32 AMOCAS.D emulated as LR/SC pair #1502

Open
moscickimilosz opened this issue Jul 4, 2024 · 2 comments
Open

RV32 AMOCAS.D emulated as LR/SC pair #1502

moscickimilosz opened this issue Jul 4, 2024 · 2 comments

Comments

@moscickimilosz
Copy link

Hi!

The unprivileged specification version 20240411 states that:

Any AMO can be emulated by an LR/SC pair

Is this with exception of AMOCAS.D for RV32? Since:

An SC can only pair with the most recent LR in program order.

@ved-rivos
Copy link
Collaborator

That is correct. For RV32, AMOCAS.D cannot be emulated using LR/SC and AMOCAS.Q cannot be emulated using LR/SC.
AMO that operate on data wider than XLEN cannot be emulated using an LR/SC pair.

@moscickimilosz
Copy link
Author

Thanks for clarifying, would it make sense to note this in the spec?

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

No branches or pull requests

2 participants