Skip to content

Initialize the full CBO.ZERO test block - #673

Merged
aswaterman merged 1 commit into
riscv-software-src:masterfrom
vera-rubin:fix/initialize-cbo-zero-block
Oct 19, 2026
Merged

aswaterman merged 1 commit into
riscv-software-src:masterfrom
vera-rubin:fix/initialize-cbo-zero-block

Conversation

@vera-rubin

Copy link
Copy Markdown
Contributor

With 64-byte zero blocks, replacing cbo.zero in this test with sd zero, 0(x1) still passes. Only the first doubleword starts nonzero, so the other seven checks can pass on fresh simulator RAM even though Zicboz requires every byte in the block to be cleared.

We align tdat to 64 bytes and initialize all eight doublewords to nonzero values.

The CBO test passes on Spike and QEMU before and after the change, while the eight-byte-clear substitution now fails on the second doubleword.

— ChipLab

@aswaterman
aswaterman merged commit 3df703c into riscv-software-src:master Oct 19, 2026
1 check passed
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