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 CBO for unaligned rs1 #1433

Merged
merged 1 commit into from
Jan 7, 2025
Merged

Clarify CBO for unaligned rs1 #1433

merged 1 commit into from
Jan 7, 2025

Conversation

Timmmm
Copy link
Contributor

@Timmmm Timmmm commented May 29, 2024

Rework the text to be much more explicit about the behaviour when rs1 is not aligned to the cache block size.

I also moved & slightly reworded the note about the assembly syntax since it's not relevant to the instruction semantics.

Fixes #1263

src/cmo.adoc Outdated Show resolved Hide resolved
@Timmmm
Copy link
Contributor Author

Timmmm commented Jul 26, 2024

@ved-rivos @dkruckemyer-ventana any objection to merging this? I think the points Ved raised above are pre-existing issues (unless I've misunderstood) and therefore can be addressed in another PR.

src/cmo.adoc Outdated Show resolved Hide resolved
src/cmo.adoc Outdated Show resolved Hide resolved
Copy link
Member

@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.

I'm OK with it after the minor suggestions I made, but I still want @dkruckemyer-ventana to sign off.

Rework the text to be much more explicit about the behaviour when rs1 is not aligned to the cache block size.

I also moved & slightly reworded the note about the assembly syntax since it's not relevant to the instruction semantics.
Copy link
Contributor Author

@Timmmm Timmmm left a comment

Choose a reason for hiding this comment

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

Sorry for the delay - finally got back to this! (It came up on the mailing list recently, so I thought I'd better get it done.)

I've applied your suggestion. Hopefully this is good to go now.

src/cmo.adoc Outdated Show resolved Hide resolved
src/cmo.adoc Outdated Show resolved Hide resolved
src/cmo.adoc Outdated Show resolved Hide resolved
Timmmm added a commit to Timmmm/sail-riscv that referenced this pull request Jan 6, 2025
CBO faults report the address in rs1, not the cache block address.

The spec is not explicit about this yet but I have a pending PR to clarify that: riscv/riscv-isa-manual#1433
Copy link
Member

@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.

Thanks, @Timmmm.

@aswaterman aswaterman merged commit 63267df into riscv:main Jan 7, 2025
3 checks passed
Timmmm added a commit to riscv/sail-riscv that referenced this pull request Jan 9, 2025
CBO faults report the address in rs1, not the cache block address.

This has been clarified in the spec here: riscv/riscv-isa-manual#1433
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.

Specify mtval for unaligned CMOs
3 participants