Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix wrong cache line size of riscv64 #145078

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

Merged
bors merged 1 commit into rust-lang:master from minxuanz:riscv-cacheline
Aug 27, 2025
Merged

Conversation

Copy link
Contributor

@minxuanz minxuanz commented Aug 8, 2025

see https://go-review.googlesource.com/c/go/+/526659, All of riscv CPU using 64B for cache-line size.

Copy link
Collaborator

rustbot commented Aug 8, 2025

r? @thomcc

rustbot has assigned @thomcc.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Aug 8, 2025
Copy link
Member

Confirmed by looking at all readily available implementations.

@bors try jobs=dist-riscv64-linux

This comment has been minimized.

rust-bors bot added a commit that referenced this pull request Aug 26, 2025
Fix wrong cache line size of riscv64
try-job: dist-riscv64-linux
Copy link

rust-bors bot commented Aug 26, 2025

☀️ Try build successful (CI)
Build commit: a359786 (a3597869fc4b44a6cd714ccf674fc1e1996d8fe9, parent: 91ee6a4057ce4bf1ab6d2f932cae497488d67c81)

Copy link
Member

@bors r+ rollup=always

Copy link
Collaborator

bors commented Aug 26, 2025

📌 Commit d47b5e4 has been approved by samueltardieu

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 26, 2025
Copy link
Contributor

a4lg commented Aug 27, 2025

+1 (no changes required) except that "wrong" in the title seems a bit misleading (so I'll leave a note here).

The RISC-V architecture (itself) defines nothing about cache line size (in fact, we don't actually need cache in the minimal configuration).

However, for baseline purposes, there's RISC-V Profiles specification1 .
In that specification, profiles for application-class processor environment, RVA22U64/S64 and RVA23U64/S64 mandate that the Zic64b extension must be present (i.e. cache block size must be exactly 64-bytes and must be naturally aligned).

Footnotes

  1. For instance, Ubuntu 25.10 will require RVA23U64/S64 baseline.

minxuanz reacted with thumbs up emoji

bors added a commit that referenced this pull request Aug 27, 2025
Rollup of 6 pull requests
Successful merges:
 - #142215 (Use -Zmir-opt-level=0 in tests for MIR building)
 - #143341 (Mention that casting to *const () is a way to roundtrip with from_raw_parts)
 - #145078 (Fix wrong cache line size of riscv64)
 - #145290 (Improve std::fs::read_dir docs)
 - #145335 (Move WTF-8 code from std into core and alloc)
 - #145904 (Move `riscv64-gc-unknown-linux-musl` from Tier 2 with Host tools to Tier 2)
r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 7879cbb into rust-lang:master Aug 27, 2025
11 checks passed
@rustbot rustbot added this to the 1.91.0 milestone Aug 27, 2025
rust-timer added a commit that referenced this pull request Aug 27, 2025
Rollup merge of #145078 - minxuanz:riscv-cacheline, r=samueltardieu
Fix wrong cache line size of riscv64
see https://go-review.googlesource.com/c/go/+/526659, All of riscv CPU using 64B for cache-line size.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.
Projects
None yet
Milestone
1.91.0
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /